Uses FFI and works all relevant operating systems.
If you'd try to do it yourself, you'd have to use FFI which is a bit awkward (see the gem's code), or call commands like df -B1
and search the strings for your relevant data.
That gem takes the pain away and works nicely.
Posted by Arne Hartherz to makandra dev (2016-02-23 13:19)