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

[glesys] add take method to ip model

This commit is contained in:
Simon Gate 2013-02-05 20:44:45 +01:00
parent c60fea80bc
commit a8acfdd8c2
2 changed files with 9 additions and 1 deletions

View file

@ -62,6 +62,14 @@ module Fog
remove(:release => true)
end
def take
requires :ip
data = service.ip_take(
:ipaddress => ip
).body["response"]["details"]
merge_attributes data
end
end
end
end

View file

@ -64,7 +64,7 @@ module Fog
data = service.ip_take(
:ipaddress => ip_from_object(ip)
).response.body["response"]["details"]
).body["response"]["details"]
ip = new data