summaryrefslogtreecommitdiff
path: root/lib/chef/knife/edit.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/edit.rb
parentced6b7747cfce06813ca1e65b80f5d7aec23062d (diff)
downloadchef-9c16e305952a8f5787ba8e9e7bd618785903a32a.tar.gz
Don't load dependencies unless you run the command!
Diffstat (limited to 'lib/chef/knife/edit.rb')
-rw-r--r--lib/chef/knife/edit.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/knife/edit.rb b/lib/chef/knife/edit.rb
index 79e46957ca..ea068cb250 100644
--- a/lib/chef/knife/edit.rb
+++ b/lib/chef/knife/edit.rb
@@ -1,13 +1,14 @@
require 'chef/chef_fs/knife'
-require 'chef/chef_fs/file_system'
-require 'chef/chef_fs/file_system/not_found_error'
class Chef
class Knife
class Edit < Chef::ChefFS::Knife
banner "knife edit [PATTERN1 ... PATTERNn]"
- common_options
+ deps do
+ require 'chef/chef_fs/file_system'
+ require 'chef/chef_fs/file_system/not_found_error'
+ end
option :local,
:long => '--local',