Class: Capistrano::Configuration::Connections::DefaultConnectionFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/configuration/connections.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DefaultConnectionFactory

Returns a new instance of DefaultConnectionFactory.



15
16
17
# File 'lib/capistrano/configuration/connections.rb', line 15

def initialize(options)
  @options = options
end

Instance Method Details

#connect_to(server) ⇒ Object



19
20
21
# File 'lib/capistrano/configuration/connections.rb', line 19

def connect_to(server)
  SSH.connect(server, @options)
end