summaryrefslogtreecommitdiffstats
path: root/lib/puppet/transportable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/transportable.rb')
-rw-r--r--lib/puppet/transportable.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/puppet/transportable.rb b/lib/puppet/transportable.rb
index ebabf3a27..cf4a4629c 100644
--- a/lib/puppet/transportable.rb
+++ b/lib/puppet/transportable.rb
@@ -7,7 +7,7 @@ require 'puppet'
module Puppet
#------------------------------------------------------------
class TransObject < Hash
- attr_accessor :type, :name
+ attr_accessor :type, :name, :file, :line
@@ohash = {}
@@oarray = []
@@ -53,6 +53,8 @@ module Puppet
retobj = nil
if type = Puppet::Type.type(self.type)
retobj = type.new(self)
+ retobj.file = @file
+ retobj.line = @line
else
raise Puppet::Error.new("Could not find object type %s" % self.type)
end
@@ -65,7 +67,7 @@ module Puppet
#------------------------------------------------------------
# just a linear container for objects
class TransBucket < Array
- attr_accessor :name, :type
+ attr_accessor :name, :type, :file, :line
def push(*args)
args.each { |arg|