class Bmc::Sdk::PowerOn

PowerOn command will power on a specific server.

@see developers.phoenixnap.com/docs/bmc/1/routes/servers/%7Bserver_id%7D/actions/power-on/post

Attributes

serverID[RW]

Public Class Methods

new(client, serverID) click to toggle source
# File lib/commands.rb, line 111
def initialize(client, serverID)
  @client = client
  @serverID = serverID
end

Public Instance Methods

execute() click to toggle source
# File lib/commands.rb, line 116
def execute
  return @client.post(
    "#{Entrypoint}servers/#{serverID}/actions/power-on", 
    headers: {'Content-Type': 'application/json'})
end