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
- #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
- #use_sudo(val = true) ⇒ Object
Constructor Details
#initialize(options) ⇒ DSL
Returns a new instance of DSL.
190 191 192 |
# File 'lib/backup/remote_data.rb', line 190 def initialize() = end |
Instance Method Details
#add(path) ⇒ Object
223 224 225 |
# File 'lib/backup/remote_data.rb', line 223 def add(path) [:paths] << path end |
#exclude(path) ⇒ Object
227 228 229 |
# File 'lib/backup/remote_data.rb', line 227 def exclude(path) [:excludes] << path end |
#root(path) ⇒ Object
219 220 221 |
# File 'lib/backup/remote_data.rb', line 219 def root(path) [:root] = path end |
#server_command=(val = true) ⇒ Object
207 208 209 |
# File 'lib/backup/remote_data.rb', line 207 def server_command=(val = true) [: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) [: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) [: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) [: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) [:server_ssh_user] = val end |
#tar_options(opts) ⇒ Object
231 232 233 |
# File 'lib/backup/remote_data.rb', line 231 def (opts) [: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) [:sudo] = val end |