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_password=(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.
225 226 227 |
# File 'lib/backup/remote_data.rb', line 225 def initialize() @options = end |
Instance Method Details
#add(path) ⇒ Object
265 266 267 |
# File 'lib/backup/remote_data.rb', line 265 def add(path) @options[:paths] << path end |
#exclude(path) ⇒ Object
269 270 271 |
# File 'lib/backup/remote_data.rb', line 269 def exclude(path) @options[:excludes] << path end |
#root(path) ⇒ Object
261 262 263 |
# File 'lib/backup/remote_data.rb', line 261 def root(path) @options[:root] = path end |
#script=(val = true) ⇒ Object
245 246 247 |
# File 'lib/backup/remote_data.rb', line 245 def script=(val = true) @options[:script] = val end |
#server_command=(val = true) ⇒ Object
242 243 244 |
# File 'lib/backup/remote_data.rb', line 242 def server_command=(val = true) @options[:server_command] = val end |
#server_host=(val = true) ⇒ Object
remote server
231 232 233 |
# File 'lib/backup/remote_data.rb', line 231 def server_host=(val = true) @options[:server_host] = val end |
#server_path=(val = true) ⇒ Object
248 249 250 |
# File 'lib/backup/remote_data.rb', line 248 def server_path=(val = true) @options[:server_path] = val end |
#server_ssh_password=(val = true) ⇒ Object
238 239 240 |
# File 'lib/backup/remote_data.rb', line 238 def server_ssh_password=(val = true) @options[:server_ssh_password] = val end |
#server_ssh_user=(val = true) ⇒ Object
235 236 237 |
# File 'lib/backup/remote_data.rb', line 235 def server_ssh_user=(val = true) @options[:server_ssh_user] = val end |
#tar_options(opts) ⇒ Object
273 274 275 |
# File 'lib/backup/remote_data.rb', line 273 def (opts) @options[:tar_options] = opts end |
#temp_dir_path=(val = true) ⇒ Object
252 253 254 |
# File 'lib/backup/remote_data.rb', line 252 def temp_dir_path=(val = true) @options[:temp_dir_path] = val end |
#use_sudo(val = true) ⇒ Object
257 258 259 |
# File 'lib/backup/remote_data.rb', line 257 def use_sudo(val = true) @options[:sudo] = val end |