Sha256: 01d86a4bb8b81bd817a79c18021ff516ecb08510c792371e6f8770cf49a9a033
Contents?: true
Size: 749 Bytes
Versions: 30
Compression:
Stored size: 749 Bytes
Contents
module Fog module NewServers class Real # Shutdown a running server # # ==== Parameters # * serverId<~String> - The id of the server to shutdown # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'server'<~Hash>: # * 'id'<~String> - Id of the image # def cancel_server(server_id) request( :expects => 200, :method => 'GET', :parser => Fog::ToHashDocument.new, :path => 'api/cancelServer', :query => {'serverId' => server_id} ) end end class Mock def cancel_server(server_id) Fog::Mock.not_implemented end end end end
Version data entries
30 entries across 30 versions & 2 rubygems