Sha256: 01d86a4bb8b81bd817a79c18021ff516ecb08510c792371e6f8770cf49a9a033

Contents?: true

Size: 749 Bytes

Versions: 30

Compression:

Stored size: 749 Bytes

Contents

module Fog
  module NewServers
    class Real

      # Shutdown a running server
      #
      # ==== Parameters
      # * serverId<~String> - The id of the server to shutdown
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'server'<~Hash>:
      #       * 'id'<~String> - Id of the image
      #
      def cancel_server(server_id)
        request(
          :expects  => 200,
          :method   => 'GET',
          :parser   => Fog::ToHashDocument.new,
          :path     => 'api/cancelServer',
          :query    => {'serverId' => server_id}
        )
      end

    end

    class Mock

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