Class: Backup::RemoteData::DSL
- Inherits:
-
Object
- Object
- Backup::RemoteData::DSL
- Defined in:
- lib/backup/remote_data.rb
Overview
DSL for RemoteArchive
Instance Method Summary collapse
- #add(path) ⇒ Object
- #exclude(path) ⇒ Object
-
#initialize(options) ⇒ DSL
constructor
A new instance of DSL.
- #root(path) ⇒ Object
- #script=(val = true) ⇒ Object
- #server_command=(val = true) ⇒ Object
-
#server_host=(val = true) ⇒ Object
remote server.
- #server_path=(val = true) ⇒ Object
- #server_ssh_key=(val = true) ⇒ Object
- #server_ssh_password=(val = true) ⇒ Object
- #server_ssh_port=(val = true) ⇒ Object
- #server_ssh_user=(val = true) ⇒ Object
- #tar_options(opts) ⇒ Object
- #temp_dir_path=(val = true) ⇒ Object
- #use_sudo(val = true) ⇒ Object
Constructor Details
#initialize(options) ⇒ DSL
Returns a new instance of DSL.
233 234 235 |
# File 'lib/backup/remote_data.rb', line 233 def initialize() @options = end |
Instance Method Details
#add(path) ⇒ Object
281 282 283 |
# File 'lib/backup/remote_data.rb', line 281 def add(path) @options[:paths] << path end |
#exclude(path) ⇒ Object
285 286 287 |
# File 'lib/backup/remote_data.rb', line 285 def exclude(path) @options[:excludes] << path end |
#root(path) ⇒ Object
277 278 279 |
# File 'lib/backup/remote_data.rb', line 277 def root(path) @options[:root] = path end |
#script=(val = true) ⇒ Object
261 262 263 |
# File 'lib/backup/remote_data.rb', line 261 def script=(val = true) @options[:script] = val end |
#server_command=(val = true) ⇒ Object
258 259 260 |
# File 'lib/backup/remote_data.rb', line 258 def server_command=(val = true) @options[:server_command] = val end |
#server_host=(val = true) ⇒ Object
remote server
239 240 241 |
# File 'lib/backup/remote_data.rb', line 239 def server_host=(val = true) @options[:server_host] = val end |
#server_path=(val = true) ⇒ Object
264 265 266 |
# File 'lib/backup/remote_data.rb', line 264 def server_path=(val = true) @options[:server_path] = val end |
#server_ssh_key=(val = true) ⇒ Object
253 254 255 |
# 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) ⇒ Object
250 251 252 |
# 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) ⇒ Object
243 244 245 |
# 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) ⇒ Object
247 248 249 |
# File 'lib/backup/remote_data.rb', line 247 def server_ssh_user=(val = true) @options[:server_ssh_user] = val end |
#tar_options(opts) ⇒ Object
289 290 291 |
# File 'lib/backup/remote_data.rb', line 289 def (opts) @options[:tar_options] = opts end |
#temp_dir_path=(val = true) ⇒ Object
268 269 270 |
# File 'lib/backup/remote_data.rb', line 268 def temp_dir_path=(val = true) @options[:temp_dir_path] = val end |
#use_sudo(val = true) ⇒ Object
273 274 275 |
# File 'lib/backup/remote_data.rb', line 273 def use_sudo(val = true) @options[:sudo] = val end |