diff options
Diffstat (limited to 'lib/chef/audit/runner.rb')
-rw-r--r-- | lib/chef/audit/runner.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index 4a76b7e65b..4059741359 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -18,7 +18,6 @@ require 'chef/audit' require 'chef/audit/audit_event_proxy' -require 'chef/audit/chef_json_formatter' require 'chef/config' class Chef @@ -72,6 +71,7 @@ class Chef configuration.backtrace_exclusion_patterns.push(Regexp.new("/Users".gsub("/", File::SEPARATOR))) configuration.backtrace_exclusion_patterns.push(Regexp.new("(eval)")) configuration.color = Chef::Config[:color] + configuration.expose_dsl_globally = false add_formatters disable_should_syntax @@ -80,9 +80,8 @@ class Chef def add_formatters configuration.add_formatter(RSpec::Core::Formatters::DocumentationFormatter) - configuration.add_formatter(Chef::Audit::ChefJsonFormatter) - #configuration.add_formatter(Chef::Audit::AuditEventProxy) - #Chef::Audit::AuditEventProxy.events = run_context.events + configuration.add_formatter(Chef::Audit::AuditEventProxy) + Chef::Audit::AuditEventProxy.events = run_context.events end # Explicitly disable :should syntax. |