Class: SwitchTower::Actor::DefaultConnectionFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/switchtower/actor.rb

Overview

An adaptor for making the SSH interface look and act like that of the Gateway class.

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ DefaultConnectionFactory

:nodoc:



20
21
22
# File 'lib/switchtower/actor.rb', line 20

def initialize(config)
  @config= config
end

Instance Method Details

#connect_to(server) ⇒ Object



24
25
26
# File 'lib/switchtower/actor.rb', line 24

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