1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/brightbox/requests/compute/resize_server.rb
2012-04-25 10:31:28 -04:00

19 lines
No EOL
432 B
Ruby

module Fog
module Compute
class Brightbox
class Real
def resize_server(identifier, options = {})
request(
:expects => [202],
:method => 'POST',
:path => "/1.0/servers/#{identifier}/resize",
:headers => {"Content-Type" => "application/json"},
:body => Fog::JSON.encode(options)
)
end
end
end
end
end