Class: Cloudscopes::Filesystem
- Inherits:
-
Object
- Object
- Cloudscopes::Filesystem
- Defined in:
- lib/cloudscopes/filesystem.rb
Instance Method Summary collapse
Instance Method Details
#df(path) ⇒ Object
39 40 41 |
# File 'lib/cloudscopes/filesystem.rb', line 39 def df(path) StatFs.statfs(path) end |
#mountpoints ⇒ Object
34 35 36 37 |
# 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 |