diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-17 12:38:30 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-17 12:39:15 -0800 |
commit | d40079236c3e3d98d5058b58ce0fe3d9b4d57099 (patch) | |
tree | 225887ea6634dea47b12025e99a3effd1b986a96 /lib | |
parent | 88755bd99c7b1b9c8bd8b6c316cc830366f62577 (diff) | |
download | chef-d40079236c3e3d98d5058b58ce0fe3d9b4d57099.tar.gz |
[CHEF-3571] code rename chef-recipe -> chef-apply
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/application/apply.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb index 4e750b0e15..cf34f51c19 100644 --- a/lib/chef/application/apply.rb +++ b/lib/chef/application/apply.rb @@ -27,7 +27,7 @@ require 'tempfile' require 'chef/providers' require 'chef/resources' -class Chef::Application::Recipe < Chef::Application +class Chef::Application::Apply < Chef::Application banner "Usage: chef-recipe [RECIPE_FILE] [-e RECIPE_TEXT] [-s]" @@ -43,7 +43,7 @@ class Chef::Application::Recipe < Chef::Application :long => "--stdin", :description => "Execute resources read from STDIN", :boolean => true - + option :log_level, :short => "-l LEVEL", :long => "--log_level LEVEL", @@ -59,7 +59,7 @@ class Chef::Application::Recipe < Chef::Application :show_options => true, :exit => 0 - + option :version, :short => "-v", :long => "--version", @@ -116,7 +116,7 @@ class Chef::Application::Recipe < Chef::Application @recipe_fh.rewind @recipe_filename = @recipe_fh.path end - + def run_chef_recipe if config[:execute] @recipe_text = config[:execute] @@ -148,7 +148,7 @@ class Chef::Application::Recipe < Chef::Application rescue Exception => e Chef::Application.debug_stacktrace(e) Chef::Application.fatal!("#{e.class}: #{e.message}", 1) - end + end end # Get this party started @@ -156,5 +156,5 @@ class Chef::Application::Recipe < Chef::Application reconfigure run_application end - + end |