Parent

Class/Module Index [+]

Quicksearch

Backup::Archive::DSL

Public Class Methods

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

Public Instance Methods

add(path) click to toggle source
# File lib/backup/archive.rb, line 155
def add(path)
  @options[:paths] << path
end
exclude(path) click to toggle source
# File lib/backup/archive.rb, line 159
def exclude(path)
  @options[:excludes] << path
end
root(path) click to toggle source
# File lib/backup/archive.rb, line 151
def root(path)
  @options[:root] = path
end
tar_options(opts) click to toggle source
# File lib/backup/archive.rb, line 163
def tar_options(opts)
  @options[:tar_options] = opts
end
use_sudo(val = true) click to toggle source
# File lib/backup/archive.rb, line 147
def use_sudo(val = true)
  @options[:sudo] = val
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.