Sha256: c74cf75d07fa04f1952364aeedd9ccb666c2a6020e37ff0a30ed0b50876571a0

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Will issue a stop request for the server to become inactive.
        #
        # @param [String] identifier Unique reference to identify the resource
        #
        # @return [Hash] The JSON response parsed to a Hash
        #
        # @see https://api.gb1.brightbox.com/1.0/#server_stop_server
        #
        def stop_server(identifier)
          return nil if identifier.nil? || identifier == ""
          request("post", "/1.0/servers/#{identifier}/stop", [202])
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/brightbox/requests/compute/stop_server.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/requests/compute/stop_server.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/requests/compute/stop_server.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/requests/compute/stop_server.rb
fog-1.8.0 lib/fog/brightbox/requests/compute/stop_server.rb