Sha256: 612aad8f3e00bef6bd1d7d858ab73e99b018705138e01f7c9afe22bea22333ab

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

class Rustic::Configs::Backup
  include Rustic::HooksExt

  attr_reader :paths, :excluded_paths, :one_fs

  def initialize
    @paths = []
    @excluded_paths = []
    @one_fs = false
  end

  def backup(*paths)
    raise ArgumentError if paths.empty?

    @paths = paths
  end

  def exclude(*paths)
    raise ArgumentError if paths.empty?

    @excluded_paths = paths
  end

  def one_fs! = @one_fs = true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rustic-0.3.2 lib/rustic/configs/backup.rb
rustic-0.3.1 lib/rustic/configs/backup.rb
rustic-0.3.0 lib/rustic/configs/backup.rb