Class: Seijaku::SSHGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/seijaku/ssh/group.rb

Overview

Group of SSH hosts

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostsObject (readonly)

Returns the value of attribute hosts.



6
7
8
# File 'lib/seijaku/ssh/group.rb', line 6

def hosts
  @hosts
end