Method: Puppet::Transaction::EventManager#process_events

Defined in:
lib/puppet/transaction/event_manager.rb

#process_events(resource) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Respond to any queued events for this resource.

API:

  • private



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/puppet/transaction/event_manager.rb', line 32

def process_events(resource)
  restarted = false
  queued_events(resource) do |callback, events|
    r = process_callback(resource, callback, events)
    restarted ||= r
  end

  if restarted
    queue_events(resource, [resource.event(:name => :restarted, :status => "success")])

    transaction.resource_status(resource).restarted = true
  end
end