Method: Puppet::Resource.type_and_title

Defined in:
lib/puppet/resource.rb

.type_and_title(type, title) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



575
576
577
578
579
580
581
582
# File 'lib/puppet/resource.rb', line 575

def self.type_and_title(type, title)
  type, title = extract_type_and_title(type, title)
  type = munge_type_name(type)
  if type == TYPE_CLASS
    title = title == '' ? :main : munge_type_name(title)
  end
  [type, title]
end