summaryrefslogtreecommitdiff
path: root/spec/support
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 /spec/support
parentced6b7747cfce06813ca1e65b80f5d7aec23062d (diff)
downloadchef-9c16e305952a8f5787ba8e9e7bd618785903a32a.tar.gz
Don't load dependencies unless you run the command!
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/integration/knife_support.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/support/shared/integration/knife_support.rb b/spec/support/shared/integration/knife_support.rb
index 7f4078f591..ce07414a65 100644
--- a/spec/support/shared/integration/knife_support.rb
+++ b/spec/support/shared/integration/knife_support.rb
@@ -27,8 +27,8 @@ module KnifeSupport
:skip_expires => true
}
- # This is Chef::Knife.run without load_commands and load_deps--we'll
- # load stuff ourselves, thank you very much
+ # This is Chef::Knife.run without load_commands--we'll load stuff
+ # ourselves, thank you very much
stdout = StringIO.new
stderr = StringIO.new
old_loggers = Chef::Log.loggers
@@ -37,6 +37,7 @@ module KnifeSupport
puts "knife: #{args.join(' ')}" if DEBUG
subcommand_class = Chef::Knife.subcommand_class_from(args)
subcommand_class.options = Chef::Application::Knife.options.merge(subcommand_class.options)
+ subcommand_class.load_deps
instance = subcommand_class.new(args)
# Capture stdout/stderr