lib/kitchen/transport/ssh.rb in test-kitchen-1.23.2 vs lib/kitchen/transport/ssh.rb in test-kitchen-1.23.3
- old
+ new
@@ -312,11 +312,11 @@
# debug (overriding the default) when a rescuable exception is raised
# @return [Net::SSH::Connection::Session] the SSH connection session
# @api private
def establish_connection_via_gateway(opts)
retry_connection(opts) do
- gateway_options = options.merge(:port => ssh_gateway_port)
+ gateway_options = options.merge(port: ssh_gateway_port)
Net::SSH::Gateway.new(ssh_gateway,
ssh_gateway_username, gateway_options).ssh(hostname, username, options)
end
end
@@ -335,10 +335,10 @@
retry_connection(opts) do
Net::SSH.start(hostname, username, options)
end
end
- # Connecto to a host executing passed block and properly handling retreis.
+ # Connect to a host executing passed block and properly handling retries.
#
# @param opts [Hash] retry options
# @option opts [Integer] :retries the number of times to retry before
# failing
# @option opts [Float] :delay the number of seconds to wait until