Class: Slugforge::SecurityGroupGroup
- Defined in:
- lib/slugforge/models/host_group/security_group_group.rb
Instance Attribute Summary
Attributes inherited from HostGroup
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pattern, compute) ⇒ SecurityGroupGroup
constructor
A new instance of SecurityGroupGroup.
Methods inherited from HostGroup
detect, discover, #hosts_for_action, #install_all, #install_number_of_hosts, #install_percent_of_hosts, #sorted_hosts, #success?
Constructor Details
#initialize(pattern, compute) ⇒ SecurityGroupGroup
Returns a new instance of SecurityGroupGroup.
11 12 13 14 15 16 17 18 |
# File 'lib/slugforge/models/host_group/security_group_group.rb', line 11 def initialize(pattern, compute) @hosts = compute.servers.select do |server| server.groups.include?(pattern) && !server.public_ip_address.nil? end.map do |server| FogHost.new(pattern, server) end super end |
Class Method Details
.matcher ⇒ Object
7 8 9 |
# File 'lib/slugforge/models/host_group/security_group_group.rb', line 7 def self.matcher /\w+/ end |