Sha256: ae772542c03cc4e0c757f82d3073bbf243c2b193b5936a2bd62a4c1512245c6b
Contents?: true
Size: 723 Bytes
Versions: 36
Compression:
Stored size: 723 Bytes
Contents
module Fog module Rackspace module Servers 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
36 entries across 36 versions & 2 rubygems