diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-10-31 15:05:10 -0700 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:47:25 -0800 |
commit | 549b0b4d16ebb07798d9c89e3788fe26de3a4ebf (patch) | |
tree | bd761ed2a1fa270448ddb33851a0e21d790ee77e /lib/chef/client.rb | |
parent | 390b858f2cfb130817573813294cb77b84f71874 (diff) | |
download | chef-549b0b4d16ebb07798d9c89e3788fe26de3a4ebf.tar.gz |
Adding audit mode JSON formatter
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r-- | lib/chef/client.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 6c83639ec3..3818f9fad6 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -25,6 +25,7 @@ require 'chef/log' require 'chef/rest' require 'chef/api_client' require 'chef/api_client/registration' +require 'chef/audit' require 'chef/node' require 'chef/role' require 'chef/file_cache' @@ -344,7 +345,8 @@ class Chef audit_exception = nil begin @events.audit_start(run_context) - # TODO + auditor = Chef::Audit::Runner.new(run_context) + auditor.run @events.audit_complete rescue Exception => e @events.audit_failed(e) |