Update sshkit_with_ext.rb
This commit is contained in:
@@ -80,8 +80,7 @@ class SSHKit::Backend::Netssh
|
|||||||
module LimitConcurrentStartsInstance
|
module LimitConcurrentStartsInstance
|
||||||
private
|
private
|
||||||
def with_ssh(&block)
|
def with_ssh(&block)
|
||||||
host.ssh_options = (host.ssh_options || {}).merge({ port: host.port, user: host.user }.compact)
|
host.ssh_options = self.class.config.ssh_options.merge(host.ssh_options || {})
|
||||||
host.ssh_options = self.class.config.ssh_options.merge(host.ssh_options)
|
|
||||||
self.class.pool.with(
|
self.class.pool.with(
|
||||||
method(:start_with_concurrency_limit),
|
method(:start_with_concurrency_limit),
|
||||||
String(host.hostname),
|
String(host.hostname),
|
||||||
|
|||||||
Reference in New Issue
Block a user