summaryrefslogtreecommitdiff
path: root/lib/chef/application/client.rb
diff options
context:
space:
mode:
authorJos Backus <jos@catnook.com>2015-12-15 14:49:46 -0800
committerJos Backus <jos@catnook.com>2016-02-17 11:03:20 -0800
commit7dde5d9e6fc1b25f43198b9b3beb08b2684af0cb (patch)
tree538438d930cba31afde4954d28281402bda98443 /lib/chef/application/client.rb
parente48aee5eae2191cf5755697d3f4407827945b0e9 (diff)
downloadchef-7dde5d9e6fc1b25f43198b9b3beb08b2684af0cb.tar.gz
chef-client: add --[no]skip-cookbook-sync option
Use with caution. Useful for patching a set of cookbooks on a machine when iterating during development.
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..badd7af9cf 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 => "Whether to skip cookbook synchronization",
+ :boolean => false
+
IMMEDIATE_RUN_SIGNAL = "1".freeze
attr_reader :chef_client_json