Method: Puppet::Type.allattrs

Defined in:
lib/puppet/type.rb

.allattrsArray<String>

Returns all the attribute names of the type in the appropriate order. The key_attributes come first, then the provider, then the properties, and finally the parameters and metaparams, all in the order they were specified in the respective files.

Returns:

  • (Array<String>)

    all type attribute names in a defined order.



125
126
127
# File 'lib/puppet/type.rb', line 125

def self.allattrs
  key_attributes | (parameters & [:provider]) | properties.collect(&:name) | parameters | metaparams
end