The command function is a wrapper that actually calls the run method
# File lib/rubyipmi/freeipmi/commands/power.rb, line 9 def command(opt) @options[opt] = false value = runcmd @options.delete_notify(opt) return @result end
Power cycle the system
# File lib/rubyipmi/freeipmi/commands/power.rb, line 27 def cycle # if the system is off turn it on if off? on else command("cycle") end end
Turn off the system
# File lib/rubyipmi/freeipmi/commands/power.rb, line 22 def off command("off") end
Test to see if the power is off
# File lib/rubyipmi/freeipmi/commands/power.rb, line 65 def off? status == "off" end
Turn on the system
# File lib/rubyipmi/freeipmi/commands/power.rb, line 17 def on command("on") end
Test to see if the power is on
# File lib/rubyipmi/freeipmi/commands/power.rb, line 60 def on? status == "on" end
# File lib/rubyipmi/freeipmi/commands/power.rb, line 47 def powerInterrupt command("pulse") end
Perform a power reset on the system
# File lib/rubyipmi/freeipmi/commands/power.rb, line 38 def reset command("reset") end
Generated with the Darkfish Rdoc Generator 2.