class Backup::RemoteArchive::DSL
DSL
for RemoteArchive
Public Class Methods
new(options)
click to toggle source
# File lib/backup/remote_archive.rb, line 227 def initialize(options) @options = options end
Public Instance Methods
add(path)
click to toggle source
# File lib/backup/remote_archive.rb, line 260 def add(path) @options[:paths] << path end
exclude(path)
click to toggle source
# File lib/backup/remote_archive.rb, line 264 def exclude(path) @options[:excludes] << path end
root(path)
click to toggle source
# File lib/backup/remote_archive.rb, line 256 def root(path) @options[:root] = path end
server_host=(val = true)
click to toggle source
remote server
# File lib/backup/remote_archive.rb, line 233 def server_host=(val = true) @options[:server_host] = val end
server_ssh_key=(val = true)
click to toggle source
# File lib/backup/remote_archive.rb, line 247 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_archive.rb, line 244 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_archive.rb, line 237 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_archive.rb, line 241 def server_ssh_user=(val = true) @options[:server_ssh_user] = val end
tar_options(opts)
click to toggle source
# File lib/backup/remote_archive.rb, line 268 def tar_options(opts) @options[:tar_options] = opts end
use_sudo(val = true)
click to toggle source
# File lib/backup/remote_archive.rb, line 252 def use_sudo(val = true) @options[:sudo] = val end