core/rails/app/models/barclamp_ipmi/ipmi_hammer.rb
# Hard-reboot the node without powering it off.
Hard-reboot the node without powering it off.
Hard - reboot the node without powering it off .
def reset
    Rails.logger.debug("IPMI: reset: start")
    return on unless on?
    Rails.logger.debug("IPMI: reset: action")
    out,res = invoke("chassis power reset")
    Rails.logger.debug("IPMI: reset: result: #{out}")
    node.update!(alive: false) if out.strip =~ /Reset$/
  end
def reset Rails . logger . debug ( "IPMI: reset: start" ) return on unless on? Rails . logger . debug ( "IPMI: reset: action" ) out , res = invoke ( "chassis power reset" ) Rails . logger . debug ( "IPMI: reset: result: #{out}" ) node . update! ( alive : false ) if out . strip =~ / Reset$ / end
Hard-reboot the node without powering it off.
Hard - reboot the node without powering it off .