Class: Slugforge::IpAddressGroup

Inherits:
HostGroup show all
Defined in:
lib/slugforge/models/host_group/ip_address_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) ⇒ IpAddressGroup

Returns a new instance of IpAddressGroup.



11
12
13
14
# File 'lib/slugforge/models/host_group/ip_address_group.rb', line 11

def initialize(pattern, compute)
  @hosts = [ IpAddressHost.new(pattern) ]
  super
end

Class Method Details

.matcherObject



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

def self.matcher
  /^(\d{1,3}\.){3}(\d{1,3})$/
end