Method: Puppet::Type#should
- Defined in:
- lib/puppet/type.rb
#should(name) ⇒ Object?
Returns the ‘should’ (wanted state) value for a specified property, or nil if the given attribute name is not a property (i.e. if it is a parameter, meta-parameter, or does not exist).
755 756 757 758 759 760 761 762 |
# File 'lib/puppet/type.rb', line 755 def should(name) prop = @parameters[name.intern] if prop && prop.is_a?(Puppet::Property) prop.should else nil end end |