Sha256: 355bff4f5f1f117b01110b32e3e4fade5fc2b65fcde5899a6a161258600b5685
Contents?: true
Size: 692 Bytes
Versions: 36
Compression:
Stored size: 692 Bytes
Contents
module Fog module Bluebox class Real # Reboot block # # ==== Parameters # * block_id<~String> - Id of block to reboot # * type<~String> - Type of reboot, must be in ['HARD', 'SOFT'] # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # TODO def reboot_block(block_id, type = 'SOFT') request( :expects => 200, :method => 'PUT', :path => "api/blocks/#{block_id}/#{'soft_' if type == 'SOFT'}reboot.json" ) end end class Mock def reboot_block(block_id, type = 'SOFT') Fog::Mock.not_implemented end end end end
Version data entries
36 entries across 36 versions & 2 rubygems