Sha256: 384475b40984928347b3f0e43975c762232fe04223a7b339a2a2daca3a8b0590

Contents?: true

Size: 731 Bytes

Versions: 36

Compression:

Stored size: 731 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

      class Mock

        def grid_server_power(server)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
fog-0.3.23 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.22 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.21 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.20 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.19 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.18 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.17 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.16 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.15 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.14 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.13 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.12 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.11 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.10 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.9 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.8 lib/fog/go_grid/requests/compute/grid_server_power.rb