Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rewrite check-disk to use sys-filesytem instead of df #2
We should be using sys-filesystem instead of the output of df. If nothing more than this would just make it easier to test. The more generic Ruby code we can use the better.
It is my personal opinion here, but i have a strong aversion to anything that ties me to a specific architecture. If I can abstract out the code, even at the sake of moderate complexity, I think it is worth it.
This is functionally identical with the exception of include and ignore line patterns as we are now dealing with objects and strings. This is a very rough draft and will most likely be broken done and have common functionality put in lib/ but as a poc it works fine,