Sha256: 350ee1821d3205171efc566ae87ba73b41f01ae8455f3f61b632abdd5599f650

Contents?: true

Size: 574 Bytes

Versions: 30

Compression:

Stored size: 574 Bytes

Contents

module Fog
  module NewServers
    class Real

      # Reboot a running server
      #
      # ==== Parameters
      # * serverId<~String> - The id of the server to reboot
      #
      def reboot_server(server_id)
        request(
          :expects  => 200,
          :method   => 'GET',
          :parser   => Fog::ToHashDocument.new,
          :path     => 'api/rebootServer',
          :query    => {'serverId' => server_id}
        )
      end

    end

    class Mock

      def reboot_server(server_id)
        Fog::Mock.not_implemented
      end

    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.28 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.27 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.26 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.25 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.24 lib/fog/new_servers/requests/reboot_server.rb
tecnh-fog-0.2.23.vpc lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.23 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.22 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.21 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.20 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.19 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.18 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.17 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.16 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.15 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.14 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.13 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.12 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.11 lib/fog/new_servers/requests/reboot_server.rb