Class: Seijaku::SSHGroup
- Inherits:
-
Object
- Object
- Seijaku::SSHGroup
- Defined in:
- lib/seijaku/ssh/group.rb
Overview
Group of SSH hosts
Instance Attribute Summary collapse
-
#hosts ⇒ Object
readonly
Returns the value of attribute hosts.
Instance Method Summary collapse
-
#initialize(ssh_group) ⇒ SSHGroup
constructor
A new instance of SSHGroup.
Constructor Details
#initialize(ssh_group) ⇒ SSHGroup
Returns a new instance of SSHGroup.
8 9 10 11 12 13 |
# File 'lib/seijaku/ssh/group.rb', line 8 def initialize(ssh_group) @hosts = {} ssh_group.each do |host| @hosts[host[:host]] = Host.new(host) end end |
Instance Attribute Details
#hosts ⇒ Object (readonly)
Returns the value of attribute hosts.
6 7 8 |
# File 'lib/seijaku/ssh/group.rb', line 6 def hosts @hosts end |