[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Daniel Pittman daniel at puppetlabs.com
Tue May 10 08:13:32 UTC 2011


The following commit has been merged in the experimental branch:
commit 941c56a283265cdf5a951ecaae63580b60486c52
Author: Daniel Pittman <daniel at puppetlabs.com>
Date:   Tue Apr 12 17:21:58 2011 -0700

    maint: eliminate deprecated since 2008 code from Puppet.
    
    We had some code that had been deprecated back in '08, and is unused in our
    code.  For this next release that is past due to be removed from the product
    entirely.
    
    Reviewed-By: Luke Kaines <lak at puppetlabs.com>

diff --git a/lib/puppet.rb b/lib/puppet.rb
index ef5fb7f..401cecc 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'

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list