Class: PuppetX::Sensu::SecretsProperty
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- PuppetX::Sensu::SecretsProperty
- Defined in:
- lib/puppet_x/sensu/secrets_property.rb
Instance Method Summary collapse
- #change_to_s(currentvalue, newvalue) ⇒ Object
- #is_to_s(currentvalue) ⇒ Object (also: #should_to_s)
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 |