diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/resource.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/resource.rb b/lib/puppet/resource.rb index 50663cb67..7082e261f 100644 --- a/lib/puppet/resource.rb +++ b/lib/puppet/resource.rb @@ -7,7 +7,7 @@ require 'puppet/resource/reference' class Puppet::Resource include Puppet::Util::Tagging include Enumerable - attr_accessor :type, :title, :file, :line, :catalog + attr_accessor :type, :title, :file, :line, :catalog, :exported # Proxy these methods to the parameters hash. It's likely they'll # be overridden at some point, but this works for now. @@ -44,6 +44,10 @@ class Puppet::Resource @parameters.each { |p,v| yield p, v } end + def exported? + exported + end + # Create our resource. def initialize(type, title, parameters = {}) @reference = Puppet::Resource::Reference.new(type, title) |