lib/puppet_x/coi/jboss/internal/securitydomain_auditor.rb
# Method that checks if securitydomain exists
# @return [Boolean] returns true if security-domain exists in any state
Method that checks if securitydomain exists
Method that checks if securitydomain exists
def exists?
    return @result unless @result.nil?
    raw_result = read_resource_recursive
    unless raw_result[:result]
      Puppet.debug 'Security Domain does NOT exist'
      return false
    end
    Puppet.debug("Raw result: #{raw_result.inspect}")
    @result = resolve_state(raw_result[:data], @resource)
    @result
  end
def exists? return @result unless @result . nil? raw_result = read_resource_recursive unless raw_result [ :result ] Puppet . debug 'Security Domain does NOT exist' return false end Puppet . debug ( "Raw result: #{raw_result.inspect}" ) @result = resolve_state ( raw_result [ :data ] , @resource ) @result end
Method that checks if securitydomain exists
Method that checks if securitydomain exists
returns true if security-domain exists in any state
returns true if security - domain exists in any state
Boolean