class Backup::RemoteData::DSL

DSL for RemoteArchive

Public Class Methods

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

Public Instance Methods

add(path) click to toggle source
# File lib/backup/remote_data.rb, line 281
def add(path)
  @options[:paths] << path
end
exclude(path) click to toggle source
# File lib/backup/remote_data.rb, line 285
def exclude(path)
  @options[:excludes] << path
end
root(path) click to toggle source
# File lib/backup/remote_data.rb, line 277
def root(path)
  @options[:root] = path
end
script=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 261
def script=(val = true)
  @options[:script] = val
end
server_command=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 258
def server_command=(val = true)
  @options[:server_command] = val
end
server_host=(val = true) click to toggle source

remote server

# File lib/backup/remote_data.rb, line 239
def server_host=(val = true)
  @options[:server_host] = val
end
server_path=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 264
def server_path=(val = true)
  @options[:server_path] = val
end
server_ssh_key=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 253
def server_ssh_key=(val = true)
  @options[:server_ssh_key] = val
end
server_ssh_password=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 250
def server_ssh_password=(val = true)
  @options[:server_ssh_password] = val
end
server_ssh_port=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 243
def server_ssh_port=(val = true)
  @options[:server_ssh_port] = val
end
server_ssh_user=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 247
def server_ssh_user=(val = true)
  @options[:server_ssh_user] = val
end
tar_options(opts) click to toggle source
# File lib/backup/remote_data.rb, line 289
def tar_options(opts)
  @options[:tar_options] = opts
end
temp_dir_path=(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 268
def temp_dir_path=(val = true)
  @options[:temp_dir_path] = val
end
use_sudo(val = true) click to toggle source
# File lib/backup/remote_data.rb, line 273
def use_sudo(val = true)
  @options[:sudo] = val
end