core/rails/app/models/barclamp_ipmi/ipmi_hammer.rb
# Turn the node off, and then back on again.
# If the node is already off, this just turns it back on.
Turn the node off, and then back on again.
If the node is already off, this just turns it back on.
Turn the node off and then back on again . If the node is already off this just turns it back on .
def cycle
    Rails.logger.debug("IPMI: cycle: start")
    return on unless on?
    Rails.logger.debug("IPMI: cycle: action")
    out,res = invoke("chassis power cycle")
    Rails.logger.debug("IPMI: cycle: result")
    node.update!(alive: false) if out.strip =~ /Cycle$/
  end
def cycle Rails . logger . debug ( "IPMI: cycle: start" ) return on unless on? Rails . logger . debug ( "IPMI: cycle: action" ) out , res = invoke ( "chassis power cycle" ) Rails . logger . debug ( "IPMI: cycle: result" ) node . update! ( alive : false ) if out . strip =~ / Cycle$ / end
Turn the node off, and then back on again.
Turn the node off and then back on again .