summaryrefslogtreecommitdiff
path: root/lib/chef/knife/upload.rb
diff options
context:
space:
mode:
authorjkeiser <jkeiser@opscode.com>2013-01-11 18:05:24 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:18 -0700
commit14e8279e6419642ff04392ea307772295f1b1da4 (patch)
tree157ee18c81425778fd25c2b61aa04aeb4d1509d0 /lib/chef/knife/upload.rb
parent0ba77cc5f37d37f51e3b5f67dcc6a3f644b552fd (diff)
downloadchef-14e8279e6419642ff04392ea307772295f1b1da4.tar.gz
knife upload/download: print relative path instead of path_for_printing
Diffstat (limited to 'lib/chef/knife/upload.rb')
-rw-r--r--lib/chef/knife/upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/upload.rb b/lib/chef/knife/upload.rb
index 6cdf26e1a0..25233eef13 100644
--- a/lib/chef/knife/upload.rb
+++ b/lib/chef/knife/upload.rb
@@ -42,7 +42,7 @@ class Chef
error = false
pattern_args.each do |pattern|
- error ||= Chef::ChefFS::FileSystem.copy_to(pattern, local_fs, chef_fs, config[:recurse] ? nil : 1, config, ui)
+ error ||= Chef::ChefFS::FileSystem.copy_to(pattern, local_fs, chef_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry.path) })
end
if error
exit 1