Sha256: ecee10f1fb608911853f47d60b6eea42130ffa1a542263a464f9f6e59c2f8386

Contents?: true

Size: 638 Bytes

Versions: 9

Compression:

Stored size: 638 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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.8.1 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.8.0 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.7.2 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.7.1 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.7.0 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.6.0 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.5.3 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.5.2 lib/fog/compute/requests/bluebox/reboot_block.rb