class Rustic::Configs::Backup

Attributes

excluded_paths[R]
one_fs[R]
paths[R]

Public Class Methods

new() click to toggle source
# File lib/rustic/configs/backup.rb, line 8
def initialize
  @paths = []
  @excluded_paths = []
  @one_fs = false
end

Public Instance Methods

backup(*paths) click to toggle source
# File lib/rustic/configs/backup.rb, line 14
def backup(*paths)
  raise ArgumentError if paths.empty?

  @paths = paths
end
exclude(*paths) click to toggle source
# File lib/rustic/configs/backup.rb, line 20
def exclude(*paths)
  raise ArgumentError if paths.empty?

  @excluded_paths = paths
end
one_fs!(= @one_fs = true) click to toggle source
# File lib/rustic/configs/backup.rb, line 26
  def one_fs! = @one_fs = true
end