class Btrfs::Volume
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/btrfs/volume.rb, line 7 def initialize(path) @path = path self end
Public Instance Methods
subvolumes()
click to toggle source
# File lib/btrfs/volume.rb, line 12 def subvolumes `btrfs subvolume list -t #{path}`.lines.drop(2).map do |subvolume| Subvolume.new path, subvolume end end