summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-11-10 09:52:06 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:47:27 -0800
commit73594ef27855e6f1dabb57fdffa04adc881f06be (patch)
treeca9e00cddcf0b9b0ffc7b48f4627decd1b8b2918 /lib/chef/event_dispatch
parent2bb912157470f55975f2e50e3792132478639a78 (diff)
downloadchef-73594ef27855e6f1dabb57fdffa04adc881f06be.tar.gz
Wiring audit event proxy to send events correctly to the audit_reporter
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r--lib/chef/event_dispatch/base.rb17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index e55f752065..695e31cf2e 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -230,7 +230,7 @@ class Chef
end
# Called before audit phase starts
- def audit_phase_start(run_context)
+ def audit_phase_start(run_status)
end
# Called when audit phase successfully finishes
@@ -243,19 +243,16 @@ class Chef
def audit_phase_failed(exception)
end
- def control_group_start(name)
- # TODO use this only for stdout formatting, controls indentation
+ # Signifies the start of a `controls` block with a defined name
+ def control_group_started(name)
end
- def control_group_end
+ # An example in a `controls` block completed successfully
+ def control_example_success(control_group_name, example_data)
end
- def control_example_success(description)
- # TODO Use this for both stdout and resource_reporter, need to pass ancestor tree for resource_reporter
- # but that is ignored by stdout
- end
-
- def control_example_failure(description, exception)
+ # An example in a `controls` block failed with the provided error
+ def control_example_failure(control_group_name, example_data, error)
end
# TODO: need events for notification resolve?