class Backup::Archive::DSL

Public Class Methods

new(options) click to toggle source
# File lib/backup/archive.rb, line 144
def initialize(options)
  @options = options
end

Public Instance Methods

add(path) click to toggle source
# File lib/backup/archive.rb, line 156
def add(path)
  @options[:paths] << path
end
exclude(path) click to toggle source
# File lib/backup/archive.rb, line 160
def exclude(path)
  @options[:excludes] << path
end
root(path) click to toggle source
# File lib/backup/archive.rb, line 152
def root(path)
  @options[:root] = path
end
tar_options(opts) click to toggle source
# File lib/backup/archive.rb, line 164
def tar_options(opts)
  @options[:tar_options] = opts
end
use_sudo(val = true) click to toggle source
# File lib/backup/archive.rb, line 148
def use_sudo(val = true)
  @options[:sudo] = val
end