Class: DiskUsage
- Inherits:
-
Object
- Object
- DiskUsage
- Includes:
- Watchman
- Defined in:
- lib/city_watch/watchmen/disk_usage.rb
Class Method Summary collapse
Methods included from Watchman
Class Method Details
.data ⇒ Object
7 8 9 10 11 |
# File 'lib/city_watch/watchmen/disk_usage.rb', line 7 def self.data dat = DF.data sum = dat.select {|d| d[:mounted]=="/"}.first {:partitions => dat, :summary => sum[:capacity] || sum["use%".to_sym]} end |