diff options
author | Thom May <thom@may.lt> | 2015-08-13 14:53:30 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-08-13 14:53:30 +0100 |
commit | b6ae7dca08543d04e791381a4e688fe708cfcda9 (patch) | |
tree | 38f5908db9600de28cfe2799f452c5dfd7f4cc2d | |
parent | 1d06fe16fca529c6f8ea55cba983004f0e9f196f (diff) | |
parent | 0cea929e152e1ec21de3237100c3d812cfec1eb5 (diff) | |
download | chef-b6ae7dca08543d04e791381a4e688fe708cfcda9.tar.gz |
Merge pull request #3687 from chef/mh/formatter_chef_apply
Add formatter and force-logger/formatter options to chef-apply
-rw-r--r-- | lib/chef/application/apply.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb index e9768b218c..243b441119 100644 --- a/lib/chef/application/apply.rb +++ b/lib/chef/application/apply.rb @@ -49,6 +49,24 @@ class Chef::Application::Apply < Chef::Application :description => "Load attributes from a JSON file or URL", :proc => nil + option :force_logger, + :long => "--force-logger", + :description => "Use logger output instead of formatter output", + :boolean => true, + :default => false + + option :force_formatter, + :long => "--force-formatter", + :description => "Use formatter output instead of logger output", + :boolean => true, + :default => false + + option :formatter, + :short => "-F FORMATTER", + :long => "--format FORMATTER", + :description => "output format to use", + :proc => lambda { |format| Chef::Config.add_formatter(format) } + option :log_level, :short => "-l LEVEL", :long => "--log_level LEVEL", |