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