summaryrefslogtreecommitdiff
path: root/lib/chef/application/client.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-02-18 09:07:37 +0000
committerThom May <thom@may.lt>2016-02-18 09:07:37 +0000
commit320389bf316d461ffc874ec4041999bffbac590a (patch)
tree60f35b64c110f125a3d9bc6fd65eb594b35749e4 /lib/chef/application/client.rb
parenta07b8022e790c025265f8859b5e04ac5116e7683 (diff)
parentd038cf5a74267e02136d38407bbaa188754e5830 (diff)
downloadchef-320389bf316d461ffc874ec4041999bffbac590a.tar.gz
Merge pull request #4316 from josb/master
chef-client: add --[no]skip-cookbook-sync option
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r--lib/chef/application/client.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index 1a7d8d046d..9ec553fb8a 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -285,6 +285,11 @@ class Chef::Application::Client < Chef::Application
:description => "DANGEROUS: does what it says, only useful with --recipe-url",
:boolean => true
+ option :skip_cookbook_sync,
+ :long => "--[no-]skip-cookbook-sync",
+ :description => "Use cached cookbooks without overwriting local differences from the server",
+ :boolean => false
+
IMMEDIATE_RUN_SIGNAL = "1".freeze
attr_reader :chef_client_json