Class: DiskUsage

Inherits:
Object
  • Object
show all
Includes:
Watchman
Defined in:
lib/city_watch/watchmen/disk_usage.rb

Class Method Summary collapse

Methods included from Watchman

#data, included

Class Method Details

.dataObject



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