summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-05-06 12:00:06 -0700
committerdanielsdeleo <dan@getchef.com>2015-05-06 12:00:06 -0700
commit3b6f32e58c5d40ed9bb33585afd6c62512cfec13 (patch)
tree87895da55be168764e98d9831a3f3ae2bf8bd86d /lib/chef/event_dispatch
parent690dcf41954885b087910d9b49f98912390fad10 (diff)
downloadchef-3b6f32e58c5d40ed9bb33585afd6c62512cfec13.tar.gz
Allow inspection of event dispatch's subscribersinspect-dispatcher-subscribers
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r--lib/chef/event_dispatch/dispatcher.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/event_dispatch/dispatcher.rb b/lib/chef/event_dispatch/dispatcher.rb
index 9f43f14311..370f8c51b4 100644
--- a/lib/chef/event_dispatch/dispatcher.rb
+++ b/lib/chef/event_dispatch/dispatcher.rb
@@ -9,6 +9,8 @@ class Chef
# the registered subscribers.
class Dispatcher < Base
+ attr_reader :subscribers
+
def initialize(*subscribers)
@subscribers = subscribers
end