From a576f25d9e09c27207dc9dcd42fbaead67c3266c Mon Sep 17 00:00:00 2001 From: Patrick Carlisle Date: Mon, 10 Dec 2012 14:50:42 -0800 Subject: [PATCH] Begin exposing Puppet::Type as public API. --- lib/puppet/metatype/manager.rb | 1 + lib/puppet/type.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/puppet/metatype/manager.rb b/lib/puppet/metatype/manager.rb index 6555a07398b..23da210c61d 100644 --- a/lib/puppet/metatype/manager.rb +++ b/lib/puppet/metatype/manager.rb @@ -31,6 +31,7 @@ def loadall end # Define a new type. + # @api public def newtype(name, options = {}, &block) # Handle backward compatibility unless options.is_a?(Hash) diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index 158dc43cf1d..e537ddbb588 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -15,6 +15,8 @@ module Puppet +# The base class for all Puppet types +# @api public class Type include Puppet::Util include Puppet::Util::Errors