summaryrefslogtreecommitdiffstats
path: root/lib/puppet/event.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-07 23:33:38 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-07 23:33:38 +0000
commit23f982ecda3fd74867d404b5e784f072db9a1cde (patch)
tree18a122eec695455c794caa554012fe1ee721ffa6 /lib/puppet/event.rb
parent1d739731b20a5dd10a190d783556d5c5a0275137 (diff)
downloadpuppet-23f982ecda3fd74867d404b5e784f072db9a1cde.tar.gz
puppet-23f982ecda3fd74867d404b5e784f072db9a1cde.tar.xz
puppet-23f982ecda3fd74867d404b5e784f072db9a1cde.zip
Undoing the merge that happened in 785
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/event.rb')
-rw-r--r--lib/puppet/event.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/puppet/event.rb b/lib/puppet/event.rb
index a7070bb3e..e2c364194 100644
--- a/lib/puppet/event.rb
+++ b/lib/puppet/event.rb
@@ -192,7 +192,7 @@ module Puppet
end
if transaction.triggered?(self.target, @callback) > 0
- self.target.info "already applied %s" % [@callback]
+ Puppet.debug "%s has already run" % self
else
# We need to call the method, so that it gets retrieved
# as a real object.
@@ -201,7 +201,6 @@ module Puppet
# [@source,@event,@method,target]
begin
if target.respond_to?(@callback)
- target.log "triggering %s" % @callback
event = target.send(@callback)
else
Puppet.debug(
@@ -241,6 +240,14 @@ module Puppet
@event = args[:event]
@source = args[:source]
@transaction = args[:transaction]
+
+ #Puppet.info "%s: %s(%s)" %
+ #Puppet.info "%s: %s changed from %s to %s" %
+ # [@object,@state.name, @state.is,@state.should]
+
+ # initially, just stuff all instances into a central bucket
+ # to be handled as a batch
+ #@@events.push self
end
def to_s