2012-02-27 11:27:00 -05:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class OpenStack
|
|
|
|
class Real
|
|
|
|
# Resume the server.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
# * server_id <~String> - The ID of the server to be resumed.
|
|
|
|
# === Returns
|
|
|
|
# * success <~Boolean>
|
|
|
|
def resume_server(server_id)
|
|
|
|
body = { 'resume' => nil }
|
2012-03-05 05:34:59 -05:00
|
|
|
server_action(server_id, body).status == 202
|
2012-02-27 11:27:00 -05:00
|
|
|
end # def resume_server
|
|
|
|
end # class Real
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
def resume_server(server_id)
|
|
|
|
true
|
|
|
|
end # def resume_server
|
|
|
|
end # class Mock
|
|
|
|
end # class OpenStack
|
|
|
|
end # module Compute
|
|
|
|
end # module Fog
|