3 def ipaddresses(options = {}, &block)
6 interfaces(options).each do |interface|
8 addresses << interface[:address]
10 block.call(interface[:address])
17 def internal_ipaddress
18 return ipaddresses(:role => :internal).first
21 def external_ipaddress
22 return ipaddresses(:role => :external).first