Sha256: 83fe425cd5eefdb1ced0ad31edb9b3cb2d8d79ec6653d51cbfe26c5fda675c4e
Contents?: true
Size: 648 Bytes
Versions: 26
Compression:
Stored size: 648 Bytes
Contents
module Fog module Rackspace class Compute class Real # Reboot an existing server # # ==== Parameters # * server_id<~Integer> - Id of server to reboot # * type<~String> - Type of reboot, must be in ['HARD', 'SOFT'] # def reboot_server(server_id, type = 'SOFT') body = { 'reboot' => { 'type' => type }} server_action(server_id, body) end end class Mock def reboot_server(server_id, type = 'SOFT') response = Excon::Response.new response.status = 202 response end end end end end
Version data entries
26 entries across 26 versions & 2 rubygems