summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@pagerduty.com>2015-06-12 23:51:14 -0700
committerRanjib Dey <ranjib@pagerduty.com>2015-06-12 23:51:14 -0700
commit414b3b2bea634c48f6c1996b0e7a5884cc3ad2c7 (patch)
treea9a9f750021114e0b6f8d46145ae8dee2b9f8ac4 /lib/chef/event_dispatch
parentfdde9a0a476c407d34882631b50406cf585c6602 (diff)
parentb08c9010c387c762a6fa82fa9ae8c2a5e5c8594d (diff)
downloadchef-414b3b2bea634c48f6c1996b0e7a5884cc3ad2c7.tar.gz
Merge remote-tracking branch 'origin/master' into HEAD
Conflicts: lib/chef/chef_class.rb
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r--lib/chef/event_dispatch/base.rb9
-rw-r--r--lib/chef/event_dispatch/dispatcher.rb2
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index 7274105802..73fe25ec13 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -82,6 +82,11 @@ class Chef
def node_load_completed(node, expanded_run_list, config)
end
+ # Called after the Policyfile was loaded. This event only occurs when
+ # chef is in policyfile mode.
+ def policyfile_loaded(policy)
+ end
+
# Called before the cookbook collection is fetched from the server.
def cookbook_resolution_start(expanded_run_list)
end
@@ -239,13 +244,13 @@ class Chef
end
# Called when audit phase successfully finishes
- def audit_phase_complete
+ def audit_phase_complete(audit_output)
end
# Called if there is an uncaught exception during the audit phase. The audit runner should
# be catching and handling errors from the examples, so this is only uncaught errors (like
# bugs in our handling code)
- def audit_phase_failed(exception)
+ def audit_phase_failed(exception, audit_output)
end
# Signifies the start of a `control_group` block with a defined name
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