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.30 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.28 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.27 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.26 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.25 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.24 lib/fog/bluebox/requests/reboot_block.rb
tecnh-fog-0.2.23.vpc lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.23 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.22 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.21 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.20 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.19 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.18 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.17 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.16 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.15 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.14 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.13 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.12 lib/fog/bluebox/requests/reboot_block.rb
fog-0.2.11 lib/fog/bluebox/requests/reboot_block.rb