Class: Puppet::Parameter::WlsHashTreeProperty

Inherits:
WlsProperty
  • Object
show all
Defined in:
lib/puppet_x/enterprisemodules/weblogic/wls_hash_tree_property.rb

Overview

See the file “LICENSE” for the full license governing this code.

Instance Method Summary collapse

Instance Method Details

#insync?(is) ⇒ Boolean

rubocop:disable Naming/MethodParameterName

Returns:

  • (Boolean)


13
14
15
16
17
18
19
20
21
# File 'lib/puppet_x/enterprisemodules/weblogic/wls_hash_tree_property.rb', line 13

def insync?(is)
  if should.to_s == 'absent' && is.to_s != 'absent'
    Array(is).sort == Array(default_value).sort
  elsif should.to_s == 'absent' && is.to_s == 'absent'
    true
  else
    Array(is).sort == Array(should).sort
  end
end