Created
October 2, 2012 16:52
-
-
Save cwebberOps/3821048 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
def exists?(fs) | |
begin | |
@conn["/zfs/#{Base64.encode64(fs).strip}"].get # Will throw exception on 404 if the filesystem doesn't exist | |
true | |
rescue | |
false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment