summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/doc.rb
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/formatters/doc.rb
parent2bb912157470f55975f2e50e3792132478639a78 (diff)
downloadchef-73594ef27855e6f1dabb57fdffa04adc881f06be.tar.gz
Wiring audit event proxy to send events correctly to the audit_reporter
Diffstat (limited to 'lib/chef/formatters/doc.rb')
-rw-r--r--lib/chef/formatters/doc.rb30
1 files changed, 1 insertions, 29 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index d9c9124713..09d04f3aae 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -162,20 +162,16 @@ class Chef
#############
# Called before audit phase starts
- def audit_phase_start(run_context)
+ def audit_phase_start(run_status)
puts_line ""
puts_line "++ Audit phase starting ++"
end
- # Called when audit phase successfully finishes
def audit_phase_complete
puts_line ""
puts_line "++ Audit phase ended ++ "
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(error)
puts_line ""
puts_line "Audit phase exception:"
@@ -187,30 +183,6 @@ class Chef
end
end
- def control_group_start(name)
- puts_line "Control group #{name} started"
- indent
- end
-
- def control_group_end
- unindent
- end
-
- def control_example_success(description)
- puts_line "SUCCESS - #{description}"
- end
-
- def control_example_failure(description, error)
- puts_line "FAILURE - #{description}"
- indent
- # TODO error_mapper ?
- puts_line "#{error.message}"
- # error.backtrace.each do |l|
- # puts_line l
- # end
- unindent
- end
-
# Called before action is executed on a resource.
def resource_action_start(resource, action, notification_type=nil, notifier=nil)
if resource.cookbook_name && resource.recipe_name