Class: Capissh::ConnectionManager::DefaultConnectionFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/capissh/connection_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DefaultConnectionFactory

Returns a new instance of DefaultConnectionFactory.



11
12
13
# File 'lib/capissh/connection_manager.rb', line 11

def initialize(options)
  @options = options
end

Instance Method Details

#connect_to(server) ⇒ Object



15
16
17
# File 'lib/capissh/connection_manager.rb', line 15

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