Class: Rigger::ConnectionSet
- Inherits:
-
Object
- Object
- Rigger::ConnectionSet
- Defined in:
- lib/rigger/connection_set.rb
Instance Method Summary collapse
- #call(server) ⇒ Object
-
#initialize ⇒ ConnectionSet
constructor
A new instance of ConnectionSet.
Constructor Details
#initialize ⇒ ConnectionSet
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 |