mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
549 B
Ruby
21 lines
549 B
Ruby
module Fog
|
|
module Compute
|
|
class Clodo
|
|
class Real
|
|
def rebuild_server(id, image_id, vps_isp = nil)
|
|
body = {'rebuild' => {'imageId' => image_id}}
|
|
body['rebuild']['vps_isp'] = vps_isp if vps_isp
|
|
server_action(id, body)
|
|
end
|
|
end
|
|
|
|
class Mock
|
|
def rebuild_server(id, image_id, vps_isp = nil)
|
|
body = {'rebuild' => {'imageId' => image_id}}
|
|
body['rebuild']['vps_isp'] = vps_isp if vps_isp
|
|
server_action(id, body)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|