diff options
-rw-r--r-- | lib/puppet.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index ef5fb7f06..401cecc25 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -141,17 +141,12 @@ module Puppet end end - # Create a new type. Just proxy to the Type class. + # Create a new type. Just proxy to the Type class. The mirroring query + # code was deprecated in 2008, but this is still in heavy use. I suppose + # this can count as a soft deprecation for the next dev. --daniel 2011-04-12 def self.newtype(name, options = {}, &block) Puppet::Type.newtype(name, options, &block) end - - # Retrieve a type by name. Just proxy to the Type class. - def self.type(name) - # LAK:DEP Deprecation notice added 12/17/2008 - Puppet.warning "Puppet.type is deprecated; use Puppet::Type.type" - Puppet::Type.type(name) - end end require 'puppet/type' |