Class: Jah::Status

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/jah/commands/status.rb

Constant Summary

Constants included from Command

Command::COMM

Class Method Summary collapse

Methods included from Command

find, included

Class Method Details

.okObject



10
11
12
13
14
15
16
# File 'lib/jah/commands/status.rb', line 10

def ok
  I18n.t("states." + case Jah::Cpu.med
    when 0..0.5 then :green
    when 0.51..0.7 then :yellow
    else :red
  end.to_s)
end