Skip to content

Commit

Permalink
use single quotes instead of double quotes, to avoid ambiguity
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Jun 17, 2007
1 parent dec9f82 commit aa965b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capistrano/recipes/deploy/remote_dependency.rb
Expand Up @@ -30,7 +30,7 @@ def command(command, options={})
def gem(name, version, options={})
@message ||= "gem `#{name}' #{version} could not be found"
gem_cmd = configuration.fetch(:gem_command, "gem")
try("#{gem_cmd} specification --version \"#{version}\" #{name} 2>&1 | awk 'BEGIN { s = 0 }; /^name:/ { s = 1; exit }; END { if(s == 0) exit 1 }'", options)
try("#{gem_cmd} specification --version '#{version}' #{name} 2>&1 | awk 'BEGIN { s = 0 }; /^name:/ { s = 1; exit }; END { if(s == 0) exit 1 }'", options)
self
end

Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/ssh.rb
Expand Up @@ -93,7 +93,7 @@ def self.connect(server, options={}, &block)
:password => password_value,
:auth_methods => ssh_options[:auth_methods] || methods.shift
)

connection = Net::SSH.start(server.host, connection_options, &block)
Server.apply_to(connection, server)

Expand Down

0 comments on commit aa965b5

Please sign in to comment.