Skip to content

Commit

Permalink
Set chef verbosity directly. References #13
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Jan 10, 2013
1 parent f43aa52 commit 17caf83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capistrano/chef.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Capistrano::Chef
def self.configure_chef def self.configure_chef
knife = Chef::Knife.new knife = Chef::Knife.new
# If you don't do this it gets thrown into debug mode # If you don't do this it gets thrown into debug mode
knife.config = { :verbosity => 1 } Chef::Config[:verbosity] = 1 # :info
knife.configure_chef knife.configure_chef
end end


Expand Down
1 change: 0 additions & 1 deletion spec/capistrano/chef_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
@knife = mock('Chef::Knife') @knife = mock('Chef::Knife')
Chef::Knife.stub!(:new).and_return(@knife) Chef::Knife.stub!(:new).and_return(@knife)
@knife.stub!(:configure_chef) @knife.stub!(:configure_chef)
@knife.stub!(:config=)


# Load into capistrano configuration # Load into capistrano configuration
@configuration = Capistrano::Configuration.new @configuration = Capistrano::Configuration.new
Expand Down

0 comments on commit 17caf83

Please sign in to comment.