lib/train/transports/ssh_connection.rb
# Returns a connection session, or establishes one when invoked the
# first time.
#
# @param retry_options [Hash] retry options for the initial connection
# @return [Net::SSH::Connection::Session] the SSH connection session
# @api private
Returns a connection session, or establishes one when invoked the
first time.
Returns a connection session or establishes one when invoked the first time .
def session(retry_options = {})
      @session ||= establish_connection({
        retries: @connection_retries.to_i,
        delay:   @connection_retry_sleep.to_i,
      }.merge(retry_options))
    end
def session ( retry_options = { } ) @session ||= establish_connection ( { retries : @connection_retries . to_i , delay : @connection_retry_sleep . to_i , } . merge ( retry_options ) ) end
Returns a connection session, or establishes one when invoked the
first time.
Returns a connection session or establishes one when invoked the first time .
the SSH connection session
the SSH connection session
Net::SSH::Connection::Session
retry_options
retry options for the initial connection
retry options for the initial connection
api
None