Top Level Namespace
Defined Under Namespace
Classes: ZFS
Instance Method Summary collapse
-
#ZFS(path) ⇒ Object
Get ZFS object.
Instance Method Details
#ZFS(path) ⇒ Object
Get ZFS object.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/zfs.rb', line 8 def ZFS(path) return path if path.is_a? ZFS path = Pathname(path).cleanpath.to_s if path.match(/^\//) ZFS.mounts[path] elsif path.match('@') ZFS::Snapshot.new(path) else ZFS::Filesystem.new(path) end end |