summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrajaktaPurohit <prajakta@opscode.com>2013-04-22 12:48:03 -0700
committerjamesc <james@opscode.com>2013-04-24 08:56:01 -0700
commit7fa0e1151528c98c4fa95eb766e31a1b21987c4f (patch)
treea78d2e4d781981615889c78e9dc66016d3e72a95
parent4aea53a2e8d46dc2ced0eee5ed9b3bbc63e9170c (diff)
downloadchef-7fa0e1151528c98c4fa95eb766e31a1b21987c4f.tar.gz
Adding the run_started callback
-rw-r--r--lib/chef/client.rb1
-rw-r--r--lib/chef/event_dispatch/base.rb3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index d1b368b9a4..da5683840b 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -103,6 +103,7 @@ class Chef
self.class.run_start_notifications.each do |notification|
notification.call(run_status)
end
+ @events.run_started(run_status)
end
# Callback to fire notifications that the run completed successfully
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index 232bf7f1b4..494d3cee79 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -32,6 +32,9 @@ class Chef
def run_start(version)
end
+ def run_started(run_status)
+ end
+
# Called at the end a successful Chef run.
def run_completed(node)
end