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-1.22.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.21.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.20.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-1.19.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/go_grid/requests/compute/grid_server_power.rb