Permalink
Browse files

Set chef verbosity directly. References #13

  • Loading branch information...
smith committed Jan 10, 2013
1 parent f43aa52 commit 17caf83a2dfad5141a263b2cfeb07e4970b43614
Showing with 1 addition and 2 deletions.
  1. +1 −1 lib/capistrano/chef.rb
  2. +0 −1 spec/capistrano/chef_spec.rb
View
@@ -8,7 +8,7 @@ module Capistrano::Chef
def self.configure_chef
knife = Chef::Knife.new
# If you don't do this it gets thrown into debug mode
- knife.config = { :verbosity => 1 }
+ Chef::Config[:verbosity] = 1 # :info
knife.configure_chef
end
@@ -38,7 +38,6 @@
@knife = mock('Chef::Knife')
Chef::Knife.stub!(:new).and_return(@knife)
@knife.stub!(:configure_chef)
- @knife.stub!(:config=)
# Load into capistrano configuration
@configuration = Capistrano::Configuration.new

0 comments on commit 17caf83

Please sign in to comment.