Sha256: df131fd54b252fe38f6ac3379542d1810ccf439cce195907a545c60ae7d30b0d
Contents?: true
Size: 766 Bytes
Versions: 44
Compression:
Stored size: 766 Bytes
Contents
module Fog module Bluebox class Compute 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 end
Version data entries
44 entries across 44 versions & 3 rubygems