Sha256: 8c2df87e81d9e8bec27bc784c0581601b85161540c4061b2d698068c8f9b7a36
Contents?: true
Size: 507 Bytes
Versions: 20
Compression:
Stored size: 507 Bytes
Contents
module Fog module OpenStack class Compute class Real # Stop the server. # # === Parameters # * server_id <~String> - The ID of the server to be stopped. # === Returns # * success <~Boolean> def stop_server(server_id) body = {'os-stop' => nil} server_action(server_id, body).status == 202 end end class Mock def stop_server(_server_id) true end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems