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.10 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.9 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.8 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.7 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.6 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.5 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.4 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.3 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.2 lib/fog/new_servers/requests/reboot_server.rb
fog-0.2.1 lib/fog/new_servers/requests/reboot_server.rb