core/rails/app/models/barclamp_ipmi/ipmi_hammer.rb
# Whether the node is powered on or not.
Whether the node is powered on or not.
Whether the node is powered on or not .
def status
    Rails.logger.debug("IPMI: status: start")
    out, res = invoke("chassis power status")
    Rails.logger.debug("IPMI: status: result: #{out}")
    !!(out.strip =~ / on$/) ? "on" : "off"
  end
def status Rails . logger . debug ( "IPMI: status: start" ) out , res = invoke ( "chassis power status" ) Rails . logger . debug ( "IPMI: status: result: #{out}" ) ! ! ( out . strip =~ /  on$ / ) ? "on" : "off" end
Whether the node is powered on or not.
Whether the node is powered on or not .