/btrfs.rb

Wraps btrfs volumes in Ruby Objects.

Primary LanguageRubyMIT LicenseMIT

btrfs.rb

Overview

Wraps btrfs volumes in Ruby Objects.

Why does this exist?

To simplify working with btrfs volumes in Ruby.

Installation

gem install btrfs

Usage

The following will delete all subvolumes on a btrfs volume:

require 'btrfs'

volume = Btrfs::Volume.new '/path/to/volume'

volume.subvolumes.each do |subvolume|
  subvolume.delete
end

License

btrfs.rb is available under the MIT License. See LICENSE.txt for the full text.

Contributors