Sha256: 7ae430bf623c38fc3d73f6e65d859105ef63bdbd60b457aabf423919f01befd3

Contents?: true

Size: 633 Bytes

Versions: 98

Compression:

Stored size: 633 Bytes

Contents

module Fog
  module Compute
    class GoGrid
      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, 'power' => power}
          )
        end

      end
    end
  end
end

Version data entries

98 entries across 98 versions & 17 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.15.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
gapinc-fog-1.14.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.14.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.13.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
gapinc-fog-1.12.1.2 lib/fog/go_grid/requests/compute/grid_server_power.rb
gapinc-fog-1.12.1.1 lib/fog/go_grid/requests/compute/grid_server_power.rb
gapinc-fog-1.12.1a lib/fog/go_grid/requests/compute/grid_server_power.rb
gapinc-fog-1.12.1 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.12.1 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.12.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
hpfog-0.0.20 lib/fog/go_grid/requests/compute/grid_server_power.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/go_grid/requests/compute/grid_server_power.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-nirvanix-1.8.2 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.11.1 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.11.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-nirvanix-1.8.1 lib/fog/go_grid/requests/compute/grid_server_power.rb