Module: KPM::SystemProxy::DiskSpaceInformation
- Defined in:
- lib/kpm/system_helpers/disk_space_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/disk_space_information.rb', line 6 def fetch disk_space_info = nil if OS.windows? disk_space_info = fetch_windows elsif OS.linux? disk_space_info = fetch_linux_mac(5) elsif OS.mac? disk_space_info = fetch_linux_mac(8) end disk_space_info end |
.get_labels ⇒ Object
19 20 21 22 23 |
# File 'lib/kpm/system_helpers/disk_space_information.rb', line 19 def get_labels labels = [] @@data_keys.each { |key| labels.push({:label => key.gsub(' ','_').to_sym})} labels end |