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/rackspace/requests/servers/update_server.rb

41 lines
752 B
Ruby

unless Fog.mocking?
module Fog
module Rackspace
class Servers
# Update an existing server
#
# ==== Parameters
# # server_id<~Integer> - Id of server to update
# * options<~Hash>:
# * name<~String> - New name for server
# * adminPass<~String> - New admin password for server
#
def update_server(server_id, options = {})
request(
:body => options.to_json,
:expects => 204,
:method => 'PUT',
:path => "servers/#{id}"
)
end
end
end
end
else
module Fog
module Rackspace
class Servers
def update_server
end
end
end
end
end