summaryrefslogtreecommitdiffstats
path: root/lib/puppet/transaction/event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/transaction/event.rb')
-rw-r--r--lib/puppet/transaction/event.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/puppet/transaction/event.rb b/lib/puppet/transaction/event.rb
index 418e70516..f1a48b382 100644
--- a/lib/puppet/transaction/event.rb
+++ b/lib/puppet/transaction/event.rb
@@ -9,14 +9,13 @@ class Puppet::Transaction::Event
include Puppet::Util::MethodHelper
include Puppet::Util::Errors
- attr_accessor :event, :source, :transaction
+ attr_reader :name, :source
- def initialize(args)
- set_options symbolize_options(args)
- requiredopts(:event, :source)
+ def initialize(name, source)
+ @name, @source = name, source
end
def to_s
- @source.to_s + " -> " + self.event.to_s
+ source.to_s + " -> " + name.to_s
end
end