summaryrefslogtreecommitdiff
path: root/lib/chef/knife/raw.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/raw.rb
parentced6b7747cfce06813ca1e65b80f5d7aec23062d (diff)
downloadchef-9c16e305952a8f5787ba8e9e7bd618785903a32a.tar.gz
Don't load dependencies unless you run the command!
Diffstat (limited to 'lib/chef/knife/raw.rb')
-rw-r--r--lib/chef/knife/raw.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/chef/knife/raw.rb b/lib/chef/knife/raw.rb
index 3aa4fd8049..c2195ad224 100644
--- a/lib/chef/knife/raw.rb
+++ b/lib/chef/knife/raw.rb
@@ -1,12 +1,16 @@
-require 'json'
-require 'chef/chef_fs/data_handler/data_handler_base'
-require 'chef/chef_fs/raw_request'
+require 'chef/knife'
class Chef
class Knife
class Raw < Chef::Knife
banner "knife raw REQUEST_PATH"
+ deps do
+ require 'json'
+ require 'chef/chef_fs/data_handler/data_handler_base'
+ require 'chef/chef_fs/raw_request'
+ end
+
option :method,
:long => '--method METHOD',
:short => '-m METHOD',