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

Version Path
fog-0.2.10 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.9 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.8 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.7 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.6 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.5 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.4 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.3 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.2 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.1 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.0 lib/fog/bluebox/requests/reboot_block.rb
fog-0.1.10 lib/fog/bluebox/requests/reboot_block.rb
fog-0.1.9 lib/fog/bluebox/requests/reboot_block.rb
fog-0.1.8 lib/fog/bluebox/requests/reboot_block.rb
fog-0.1.7 lib/fog/bluebox/requests/reboot_block.rb
fog-0.1.6 lib/fog/bluebox/requests/reboot_block.rb