The Dispatcher handles receiving event data from the sources (Chef::Client, Resources and Providers, etc.) and publishing the data to the registered subscribers.
Define a method that will be forwarded to all
# File lib/chef/event_dispatch/dispatcher.rb, line 27 def self.def_forwarding_method(method_name) class_eval( def #{method_name}(*args) @subscribers.each {|s| s.#{method_name}(*args)} end, __FILE__, __LINE__) end
Generated with the Darkfish Rdoc Generator 2.