Permalink
Browse files

minor: passing user within hostname

  • Loading branch information...
1 parent f722954 commit 16cdc1e0994238e3d0ab011207607947fff42b0e @alecnmk committed Apr 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capistrano/chef.rb
View
2 lib/capistrano/chef.rb
@@ -32,7 +32,7 @@ def self.load_into(configuration)
configuration.set :capistrano_chef, self
configuration.load do
def chef_role(name, query = '*:*', options = {})
- role name, *(capistrano_chef.search_chef_nodes(query) + [options])
+ role name, "#{fetch(:user)}@#{*(capistrano_chef.search_chef_nodes(query) + [options])}"
end
def set_from_data_bag

0 comments on commit 16cdc1e

Please sign in to comment.