spec/support/knife_support.rb in knife-essentials-1.1.1 vs spec/support/knife_support.rb in knife-essentials-1.2

- old
+ new

@@ -25,19 +25,20 @@ Chef::Config[:cache_options] = { :path => checksums_cache_dir, :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 old_log_level = Chef::Log.level begin 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 instance.ui = Chef::Knife::UI.new(stdout, stderr, STDIN, {})