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

[glesys] Ability to pass in options to server details

This gives us the option include the :includestate option in the
request. And when this option is set to true we will get the status of
the server.
This commit is contained in:
Simon Gate 2013-01-26 12:40:11 +01:00
parent cc1e019c32
commit 4915fd884f

View file

@ -3,8 +3,8 @@ module Fog
class Glesys
class Real
def server_details(serverid)
request("/server/details", { :serverid => serverid })
def server_details(serverid, options = {})
request("/server/details", { :serverid => serverid }.merge!(options) )
end
end