Class: Backup::Targets::Target
- Inherits:
-
Object
- Object
- Backup::Targets::Target
- Defined in:
- lib/backup/targets/target.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Backup::Options
readonly
Backup creation and restore option flags.
-
#progress ⇒ Backup::Options
readonly
Backup creation and restore option flags.
Instance Method Summary collapse
-
#dump(path, backup_id) ⇒ Object
dump task backup to ‘path`.
-
#initialize(progress, options:) ⇒ Target
constructor
A new instance of Target.
-
#restore(path, backup_id) ⇒ Object
restore task backup from ‘path`.
Constructor Details
#initialize(progress, options:) ⇒ Target
Returns a new instance of Target.
11 12 13 14 |
# File 'lib/backup/targets/target.rb', line 11 def initialize(progress, options:) @progress = progress @options = end |
Instance Attribute Details
#options ⇒ Backup::Options (readonly)
Backup creation and restore option flags
9 10 11 |
# File 'lib/backup/targets/target.rb', line 9 def @options end |
#progress ⇒ Backup::Options (readonly)
Backup creation and restore option flags
9 10 11 |
# File 'lib/backup/targets/target.rb', line 9 def progress @progress end |
Instance Method Details
#dump(path, backup_id) ⇒ Object
dump task backup to ‘path`
20 21 22 |
# File 'lib/backup/targets/target.rb', line 20 def dump(path, backup_id) raise NotImplementedError end |
#restore(path, backup_id) ⇒ Object
restore task backup from ‘path`
25 26 27 |
# File 'lib/backup/targets/target.rb', line 25 def restore(path, backup_id) raise NotImplementedError end |