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.5.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.5.0 lib/fog/compute/requests/go_grid/grid_server_power.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/go_grid/grid_server_power.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/go_grid/grid_server_power.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.4.1 lib/fog/compute/requests/go_grid/grid_server_power.rb
fog-0.4.0 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.34 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.33 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.32 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.31 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.30 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.29 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.28 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.27 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.26 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.25 lib/fog/go_grid/requests/compute/grid_server_power.rb
fog-0.3.24 lib/fog/go_grid/requests/compute/grid_server_power.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/go_grid/requests/compute/grid_server_power.rb