Class: Slugforge::HostnameGroup

Inherits:
HostGroup show all
Defined in:
lib/slugforge/models/host_group/hostname_group.rb

Instance Attribute Summary

Attributes inherited from HostGroup

#hosts, #name

Class Method Summary collapse

Instance Method Summary collapse

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

.matcherObject



7
8
9
# File 'lib/slugforge/models/host_group/hostname_group.rb', line 7

def self.matcher
  /^[^.]+\./
end