Class: PuppetX::Sensu::SecretsProperty

Inherits:
Puppet::Property
  • Object
show all
Defined in:
lib/puppet_x/sensu/secrets_property.rb

Instance Method Summary collapse

Instance Method Details

#change_to_s(currentvalue, newvalue) ⇒ Object



21
22
23
24
25
# File 'lib/puppet_x/sensu/secrets_property.rb', line 21

def change_to_s(currentvalue, newvalue)
  currentvalue = currentvalue.to_s if currentvalue != :absent
  newvalue = newvalue.to_s
  super(currentvalue, newvalue)
end

#is_to_s(currentvalue) ⇒ Object Also known as: should_to_s



27
28
29
# File 'lib/puppet_x/sensu/secrets_property.rb', line 27

def is_to_s(currentvalue)
  currentvalue.to_s
end