diff options
author | Jos Backus <jos@catnook.com> | 2015-12-15 14:49:46 -0800 |
---|---|---|
committer | Jos Backus <jos@catnook.com> | 2016-02-17 11:03:20 -0800 |
commit | 7dde5d9e6fc1b25f43198b9b3beb08b2684af0cb (patch) | |
tree | 538438d930cba31afde4954d28281402bda98443 /lib/chef/shell.rb | |
parent | e48aee5eae2191cf5755697d3f4407827945b0e9 (diff) | |
download | chef-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/shell.rb')
-rw-r--r-- | lib/chef/shell.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index 72081b18df..545b544011 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -265,6 +265,11 @@ FOOTER :description => "Replace current run list with specified items", :proc => lambda { |items| items.split(",").map { |item| Chef::RunList::RunListItem.new(item) } } + option :skip_cookbook_sync, + :long => "--[no-]skip-cookbook-sync", + :description => "Whether to skip cookbook synchronization", + :boolean => false + def self.print_help instance = new instance.parse_options([]) |