Ticket #6547: allow_multiple_ssh_ports_in_capistrano.diff
| File allow_multiple_ssh_ports_in_capistrano.diff, 0.7 kB (added by ezmobius, 2 years ago) |
|---|
-
lib/capistrano/ssh.rb
old new 27 27 :password => password_value, 28 28 :port => port, 29 29 :auth_methods => methods.shift }.merge(config.ssh_options) 30 Net::SSH.start(server,ssh_options,&block) 30 Net::SSH.start((server.gsub(/:(\d+)$/,'') || server), 31 ($1 ? ssh_options.merge({:port=>$1}) : ssh_options), 32 &block) 31 33 rescue Net::SSH::AuthenticationFailed 32 34 raise if methods.empty? 33 35 password_value = config.password