1
0
Fork 0
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:
Malik Baktiyarov 2015-09-10 16:17:37 +03:00
parent 45e851bdc5
commit 739ad5f31a
2 changed files with 1 additions and 2 deletions

View file

@ -62,7 +62,7 @@ module Capistrano
end
def matches?(other)
hostname == other.hostname
hostname == other.hostname && port == other.port
end
private

View file

@ -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)