summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-11-05 11:25:05 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:47:25 -0800
commit5647ffbafcf22cd54b1edc0b02926aca90b9099c (patch)
treeeca29649eb4ab988796d34aa052903b02007d0f0 /lib/chef/event_dispatch
parent9f3390ffe26abbe54b51aee19a78cf2778b9b340 (diff)
downloadchef-5647ffbafcf22cd54b1edc0b02926aca90b9099c.tar.gz
Adding first round of formatter integration - STDOUT doc formatter
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r--lib/chef/event_dispatch/base.rb27
1 files changed, 22 insertions, 5 deletions
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index 555998ced4..e55f752065 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -230,15 +230,32 @@ class Chef
end
# Called before audit phase starts
- def audit_start(run_context)
+ def audit_phase_start(run_context)
end
- # Called when the audit phase is finished.
- def audit_complete
+ # Called when audit phase successfully finishes
+ def audit_phase_complete
end
- # Called if the audit phase fails
- def audit_failed(exception)
+ # 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)
+ end
+
+ def control_group_start(name)
+ # TODO use this only for stdout formatting, controls indentation
+ end
+
+ def control_group_end
+ 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)
end
# TODO: need events for notification resolve?