1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Adding public_ip_address and private_ip_address to Fog::Compute::RackspaceV2::Server

This commit is contained in:
sashap 2012-11-01 12:33:54 -07:00
parent 82c6dd9cc9
commit 58ba3fdb3a

View file

@ -93,6 +93,14 @@ module Fog
end
end
def private_ip_address
addresses['private'].select{|a| a["version"] == 4}[0]["addr"]
end
def public_ip_address
ipv4_address
end
def ready?
state == ACTIVE
end