From aa965b5cd82c3cd63e2b0a5326cecbdc7f634487 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sun, 17 Jun 2007 20:23:05 +0000 Subject: [PATCH] use single quotes instead of double quotes, to avoid ambiguity git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- lib/capistrano/recipes/deploy/remote_dependency.rb | 2 +- lib/capistrano/ssh.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capistrano/recipes/deploy/remote_dependency.rb b/lib/capistrano/recipes/deploy/remote_dependency.rb index 1a66936a7..d3247b7c1 100644 --- a/lib/capistrano/recipes/deploy/remote_dependency.rb +++ b/lib/capistrano/recipes/deploy/remote_dependency.rb @@ -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 diff --git a/lib/capistrano/ssh.rb b/lib/capistrano/ssh.rb index 1efd629cd..96443563b 100644 --- a/lib/capistrano/ssh.rb +++ b/lib/capistrano/ssh.rb @@ -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)