lib/capissh/connection_manager.rb
# Returns the object responsible for establishing new SSH connections.
# The factory will respond to #connect_to, which can be used to
# establish connections to servers defined via ServerDefinition objects.
Returns the object responsible for establishing new SSH connections.
The factory will respond to #connect_to, which can be used to
establish connections to servers defined via ServerDefinition objects.
Returns the object responsible for establishing new SSH connections . The factory will respond to #connect_to which can be used to establish connections to servers defined via ServerDefinition objects .
def connection_factory
      @connection_factory ||= begin
        if @gateway
          logger.debug "establishing connection to gateway `#{@gateway.inspect}'"
          GatewayConnectionFactory.new(@gateway, @options)
        else
          DefaultConnectionFactory.new(@options)
        end
      end
    end
def connection_factory @connection_factory ||= begin if @gateway logger . debug "establishing connection to gateway `#{@gateway.inspect}'" GatewayConnectionFactory . new ( @gateway , @options ) else DefaultConnectionFactory . new ( @options ) end end end
Returns the object responsible for establishing new SSH connections.
Returns the object responsible for establishing new SSH connections .