mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
fix match server: different ports
This commit is contained in:
parent
45e851bdc5
commit
739ad5f31a
2 changed files with 1 additions and 2 deletions
|
@ -62,7 +62,7 @@ module Capistrano
|
|||
end
|
||||
|
||||
def matches?(other)
|
||||
hostname == other.hostname
|
||||
hostname == other.hostname && port == other.port
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -11,7 +11,6 @@ module Capistrano
|
|||
new_host = Server[host]
|
||||
if (server = servers.find { |s| s.matches? new_host })
|
||||
server.user = new_host.user if new_host.user
|
||||
server.port = new_host.port if new_host.port
|
||||
server.with(properties)
|
||||
else
|
||||
servers << new_host.with(properties)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue