Class: Rigger::ConnectionSet

Inherits:
Object
  • Object
show all
Defined in:
lib/rigger/connection_set.rb

Instance Method Summary collapse

Constructor Details

#initializeConnectionSet

Returns a new instance of ConnectionSet.



5
6
7
# File 'lib/rigger/connection_set.rb', line 5

def initialize
  @connections = {}
end

Instance Method Details

#call(server) ⇒ Object



9
10
11
# File 'lib/rigger/connection_set.rb', line 9

def call(server)
  @connections[server] ||= Net::SSH.start(server.host, server.user)
end