Class: Backup::RemoteArchive::DSL
- Inherits:
-
Object
- Object
- Backup::RemoteArchive::DSL
- Defined in:
- lib/backup/remote_archive.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
-
#server_host=(val = true) ⇒ Object
remote server.
- #server_ssh_password=(val = true) ⇒ Object
- #server_ssh_user=(val = true) ⇒ Object
- #tar_options(opts) ⇒ Object
- #use_sudo(val = true) ⇒ Object
Constructor Details
#initialize(options) ⇒ DSL
Returns a new instance of DSL.
216 217 218 |
# File 'lib/backup/remote_archive.rb', line 216 def initialize() = end |
Instance Method Details
#add(path) ⇒ Object
242 243 244 |
# File 'lib/backup/remote_archive.rb', line 242 def add(path) [:paths] << path end |
#exclude(path) ⇒ Object
246 247 248 |
# File 'lib/backup/remote_archive.rb', line 246 def exclude(path) [:excludes] << path end |
#root(path) ⇒ Object
238 239 240 |
# File 'lib/backup/remote_archive.rb', line 238 def root(path) [:root] = path end |
#server_host=(val = true) ⇒ Object
remote server
222 223 224 |
# File 'lib/backup/remote_archive.rb', line 222 def server_host=(val = true) [:server_host] = val end |
#server_ssh_password=(val = true) ⇒ Object
229 230 231 |
# File 'lib/backup/remote_archive.rb', line 229 def server_ssh_password=(val = true) [:server_ssh_password] = val end |
#server_ssh_user=(val = true) ⇒ Object
226 227 228 |
# File 'lib/backup/remote_archive.rb', line 226 def server_ssh_user=(val = true) [:server_ssh_user] = val end |
#tar_options(opts) ⇒ Object
250 251 252 |
# File 'lib/backup/remote_archive.rb', line 250 def (opts) [:tar_options] = opts end |
#use_sudo(val = true) ⇒ Object
234 235 236 |
# File 'lib/backup/remote_archive.rb', line 234 def use_sudo(val = true) [:sudo] = val end |