Last active
December 28, 2015 10:39
-
-
Save mbklein/7487544 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount_map = Hash[ | |
`mount`.split(/\n/).collect { |l| | |
(loc, mount, type) = l.scan(/^(.+) on (.+) type (\S+) /).flatten | |
if loc =~ /:\// | |
loc = "#{type}://#{loc.sub(/:\//,'/')}" | |
[mount, loc] | |
end | |
}.compact | |
] |
Author
mbklein
commented
Nov 15, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment