Class: Cloudscopes::Filesystem

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudscopes/filesystem.rb

Constant Summary collapse

@@mountpoints =
File.read("/proc/mounts").split("\n").grep(/(?:xv|s)d/).collect { |l| l.split(/\s+/)[1] }

Instance Method Summary collapse

Instance Method Details

#df(path) ⇒ Object



41
42
43
# File 'lib/cloudscopes/filesystem.rb', line 41

def df(path)
  StatFs.statfs(path)
end

#mountpointsObject



37
38
39
# File 'lib/cloudscopes/filesystem.rb', line 37

def mountpoints
  @@mountpoints
end