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

Version Path
fog-0.5.1 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.5.0 lib/fog/compute/requests/bluebox/reboot_block.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/bluebox/reboot_block.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/bluebox/reboot_block.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/bluebox/reboot_block.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.4.1 lib/fog/compute/requests/bluebox/reboot_block.rb
fog-0.4.0 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.34 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.33 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.32 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.31 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.30 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.29 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.28 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.27 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.26 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.25 lib/fog/bluebox/requests/compute/reboot_block.rb
fog-0.3.24 lib/fog/bluebox/requests/compute/reboot_block.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/bluebox/requests/compute/reboot_block.rb