Sha256: 1cc5f712014625651aaf63160e58f7441cd94a5b1c969648749c226c75e73d21

Contents?: true

Size: 615 Bytes

Versions: 9

Compression:

Stored size: 615 Bytes

Contents

module Fog
  module GoGrid
    class Compute
      class Real

        # Start, Stop or Restart a server
        #
        # ==== Parameters
        # * 'server'<~String> - id or name of server to power
        # * 'power'<~String>  - power operation, in ['restart', 'start', 'stop']
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        # TODO: docs
        def grid_server_power(server, power)
          request(
            :path     => 'grid/server/power',
            :query    => {'server' => server}
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.8.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.8.0 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.7.2 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.7.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.7.0 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.6.0 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.5.3 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.5.2 lib/fog/compute/requests/go_grid/grid_server_power.rb