Method: Puppet::Resource.to_kind
- Defined in:
- lib/puppet/resource.rb
.to_kind(resource_type) ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/puppet/resource.rb', line 209 def self.to_kind(resource_type) if resource_type == CLASS_STRING CLASS_STRING elsif resource_type.is_a?(Puppet::Resource::Type) && resource_type.type == :definition DEFINED_TYPE_STRING elsif resource_type.is_a?(Puppet::CompilableResourceType) COMPILABLE_TYPE_STRING else UNKNOWN_TYPE_STRING end end |