Sha256: 25eaa9bfbbba13cfa1c68edacae72c916e336563e073294c7953f407d1222bd2
Contents?: true
Size: 722 Bytes
Versions: 27
Compression:
Stored size: 722 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') request( :body => { 'reboot' => { 'type' => type }}.to_json, :expects => 202, :method => 'POST', :path => "servers/#{server_id}/action.json" ) end end class Mock def reboot_server(server_id, type = 'SOFT') Fog::Mock.not_implemented end end end end end
Version data entries
27 entries across 27 versions & 2 rubygems