summaryrefslogtreecommitdiff
path: root/lib/chef/knife/upload.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-06-03 11:06:14 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:35 -0700
commit9c16e305952a8f5787ba8e9e7bd618785903a32a (patch)
treee8c69ab319cdb2c673edbb5ae7455e4a22857d13 /lib/chef/knife/upload.rb
parentced6b7747cfce06813ca1e65b80f5d7aec23062d (diff)
downloadchef-9c16e305952a8f5787ba8e9e7bd618785903a32a.tar.gz
Don't load dependencies unless you run the command!
Diffstat (limited to 'lib/chef/knife/upload.rb')
-rw-r--r--lib/chef/knife/upload.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/knife/upload.rb b/lib/chef/knife/upload.rb
index 8bc3f411ff..d2e5708aa8 100644
--- a/lib/chef/knife/upload.rb
+++ b/lib/chef/knife/upload.rb
@@ -1,12 +1,13 @@
require 'chef/chef_fs/knife'
-require 'chef/chef_fs/command_line'
class Chef
class Knife
class Upload < Chef::ChefFS::Knife
banner "knife upload PATTERNS"
- common_options
+ deps do
+ require 'chef/chef_fs/command_line'
+ end
option :recurse,
:long => '--[no-]recurse',