Sha256: 2e702f8f7d193f544ceeafacdf197af1562b1b53ea274aeb42ff470d09e9da9a
Contents?: true
Size: 669 Bytes
Versions: 6
Compression:
Stored size: 669 Bytes
Contents
module Fog module Compute class OpenStack class Real def evacuate_server(server_id, host, on_shared_storage, admin_password = nil) body = { 'evacuate' => { 'host' => host, 'onSharedStorage' => on_shared_storage, 'admin_password' => admin_password, } } server_action(server_id, body) end end class Mock def evacuate_server(server_id, host, on_shared_storage, admin_password = nil) response = Excon::Response.new response.status = 202 response end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems