Class: Backup::RemoteData::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/remote_data.rb

Overview

DSL for RemoteArchive

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DSL

Returns a new instance of DSL.



190
191
192
# File 'lib/backup/remote_data.rb', line 190

def initialize(options)
  @options = options
end

Instance Method Details

#add(path) ⇒ Object



223
224
225
# File 'lib/backup/remote_data.rb', line 223

def add(path)
  @options[:paths] << path
end

#exclude(path) ⇒ Object



227
228
229
# File 'lib/backup/remote_data.rb', line 227

def exclude(path)
  @options[:excludes] << path
end

#root(path) ⇒ Object



219
220
221
# File 'lib/backup/remote_data.rb', line 219

def root(path)
  @options[:root] = path
end

#server_command=(val = true) ⇒ Object



207
208
209
# File 'lib/backup/remote_data.rb', line 207

def server_command=(val = true)
  @options[:server_command] = val
end

#server_host=(val = true) ⇒ Object

remote server



196
197
198
# File 'lib/backup/remote_data.rb', line 196

def server_host=(val = true)
  @options[:server_host] = val
end

#server_path=(val = true) ⇒ Object



210
211
212
# File 'lib/backup/remote_data.rb', line 210

def server_path=(val = true)
  @options[:server_path] = val
end

#server_ssh_password=(val = true) ⇒ Object



203
204
205
# File 'lib/backup/remote_data.rb', line 203

def server_ssh_password=(val = true)
  @options[:server_ssh_password] = val
end

#server_ssh_user=(val = true) ⇒ Object



200
201
202
# File 'lib/backup/remote_data.rb', line 200

def server_ssh_user=(val = true)
  @options[:server_ssh_user] = val
end

#tar_options(opts) ⇒ Object



231
232
233
# File 'lib/backup/remote_data.rb', line 231

def tar_options(opts)
  @options[:tar_options] = opts
end

#use_sudo(val = true) ⇒ Object



215
216
217
# File 'lib/backup/remote_data.rb', line 215

def use_sudo(val = true)
  @options[:sudo] = val
end