Method: Puppet::MetaType::Manager#rmtype

Defined in:
lib/puppet/metatype/manager.rb

#rmtype(name) ⇒ 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.

Note:

Only use this for testing.

Removes an existing type.



142
143
144
145
146
147
148
# File 'lib/puppet/metatype/manager.rb', line 142

def rmtype(name)
  # Then create the class.

  rmclass(name, :hash => @types)

  singleton_class.send(:remove_method, "new#{name}") if respond_to?("new#{name}")
end