diff options
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index 024a160315..c0635e1cb5 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -207,7 +207,7 @@ class Chef::Application::Client < Chef::Application :boolean => true option :recipe_url, - :long => "--recipe-url", + :long => "--recipe-url=RECIPE_URL", :description => "Pull down a remote archive of recipes and unpack it to the cookbook cache. Only used in local mode." option :enable_reporting, @@ -276,8 +276,6 @@ class Chef::Application::Client < Chef::Application if !Chef::Config.local_mode && Chef::Config.has_key?(:recipe_url) Chef::Application.fatal!("chef-client recipe-url can be used only in local-mode", 1) elsif Chef::Config.local_mode && Chef::Config.has_key?(:recipe_url) - Chef::Log.debug "Cleanup path #{Chef::Config.chef_repo_path} before extract recipes into it" - FileUtils.rm_rf(Chef::Config.chef_repo_path, :secure => true) Chef::Log.debug "Creating path #{Chef::Config.chef_repo_path} to extract recipes into" FileUtils.mkdir_p(Chef::Config.chef_repo_path) tarball_path = File.join(Chef::Config.chef_repo_path, 'recipes.tgz') |