class Cloudscopes::Filesystem
Public Instance Methods
df(path)
click to toggle source
# File lib/cloudscopes/filesystem.rb, line 39 def df(path) StatFs.statfs(path) end
mountpoints()
click to toggle source
# File lib/cloudscopes/filesystem.rb, line 34 def mountpoints @@mountpoints ||= File.read("/proc/mounts").split("\n").grep(/(?:xv|s)d/).collect { |l| l.split(/\s+/)[1] } end