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