Sha256: 81966bb90e0e452a82c7216945bc33c33806470aaeafb62fc1bb381ba5b89b2a
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
module Fog module Compute class HuaweiCloud 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
4 entries across 4 versions & 1 rubygems