lib/capistrano/configuration/connections.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 exists?(:gateway)
            logger.debug "establishing connection to gateway `#{fetch(:gateway)}'"
            GatewayConnectionFactory.new(fetch(:gateway), self)
          else
            DefaultConnectionFactory.new(self)
          end
        end
      end
def connection_factory @connection_factory ||= begin if exists? ( :gateway ) logger . debug "establishing connection to gateway `#{fetch(:gateway)}'" GatewayConnectionFactory . new ( fetch ( :gateway ) , self ) else DefaultConnectionFactory . new ( self ) end end end
Returns the object responsible for establishing new SSH connections.
Returns the object responsible for establishing new SSH connections .