Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set chef verbosity directly. References #13

  • Loading branch information...
commit 17caf83a2dfad5141a263b2cfeb07e4970b43614 1 parent f43aa52
@smith smith authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  lib/capistrano/chef.rb
  2. +0 −1  spec/capistrano/chef_spec.rb
View
2  lib/capistrano/chef.rb
@@ -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
View
1  spec/capistrano/chef_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.