3 def ipaddresses(options = {}, &block)
6 interfaces(options).each do |interface|
7 address = interface[:public_address] || interface[:address]
21 def internal_ipaddress
22 ipaddresses(:role => :internal).first
25 def external_ipaddress
26 ipaddresses(:role => :external).first