blob: 418e70516277656a25a50c2ccec73555c2ee8f16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'puppet'
require 'puppet/util/methodhelper'
require 'puppet/util/errors'
# events are transient packets of information; they result in one or more (or none)
# subscriptions getting triggered, and then they get cleared
# eventually, these will be passed on to some central event system
class Puppet::Transaction::Event
include Puppet::Util::MethodHelper
include Puppet::Util::Errors
attr_accessor :event, :source, :transaction
def initialize(args)
set_options symbolize_options(args)
requiredopts(:event, :source)
end
def to_s
@source.to_s + " -> " + self.event.to_s
end
end
|