Module: KPM::SystemProxy::CpuInformation
- Defined in:
- lib/kpm/system_helpers/cpu_information.rb
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/kpm/system_helpers/cpu_information.rb', line 5 def fetch cpu_info = nil if OS.windows? cpu_info = fetch_windows elsif OS.linux? cpu_info = fetch_linux elsif OS.mac? cpu_info = fetch_mac end cpu_info end |
.get_labels ⇒ Object
18 19 20 21 22 |
# File 'lib/kpm/system_helpers/cpu_information.rb', line 18 def get_labels labels = [{:label => :cpu_detail}, {:label => :value}] labels end |