Class: Slugforge::HostnameGroup
- Defined in:
- lib/slugforge/models/host_group/hostname_group.rb
Instance Attribute Summary
Attributes inherited from HostGroup
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pattern, compute) ⇒ HostnameGroup
constructor
A new instance of HostnameGroup.
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) ⇒ HostnameGroup
Returns a new instance of HostnameGroup.
11 12 13 14 |
# File 'lib/slugforge/models/host_group/hostname_group.rb', line 11 def initialize(pattern, compute) @hosts = [ HostnameHost.new(pattern) ] super end |
Class Method Details
.matcher ⇒ Object
7 8 9 |
# File 'lib/slugforge/models/host_group/hostname_group.rb', line 7 def self.matcher /^[^.]+\./ end |