summaryrefslogtreecommitdiff
path: root/lib/chef/knife/upload.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-05-07 10:07:21 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:32 -0700
commit9fabc2ea4d024d5910c3e23c7be19b1d2c93c7ad (patch)
tree1e9de4767717ebdbdf76e3b27011613c8c2826fb /lib/chef/knife/upload.rb
parent395cb75b0cd7aca6d4af27823417b247236676b9 (diff)
downloadchef-9fabc2ea4d024d5910c3e23c7be19b1d2c93c7ad.tar.gz
Add --no-diff option to allow download/upload of only new files
Diffstat (limited to 'lib/chef/knife/upload.rb')
-rw-r--r--lib/chef/knife/upload.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/knife/upload.rb b/lib/chef/knife/upload.rb
index 2b3fbd0e30..7105945a96 100644
--- a/lib/chef/knife/upload.rb
+++ b/lib/chef/knife/upload.rb
@@ -33,6 +33,12 @@ class Chef
:default => false,
:description => "Don't take action, only print what would happen"
+ option :diff,
+ :long => '--[no-]diff',
+ :boolean => true,
+ :default => true,
+ :description => 'Turn off to avoid uploading existing files; only new (and possibly deleted) files with --no-diff'
+
def run
if name_args.length == 0
show_usage