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