Class: Backup::Task
- Inherits:
-
Object
- Object
- Backup::Task
- Defined in:
- lib/backup/task.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#dump(path, backup_id) ⇒ Object
dump task backup to ‘path`.
-
#initialize(progress) ⇒ Task
constructor
A new instance of Task.
-
#post_restore_warning ⇒ Object
a string returned here will be displayed to the user after calling #restore.
-
#pre_restore_warning ⇒ Object
a string returned here will be displayed to the user before calling #restore.
-
#restore(path) ⇒ Object
restore task backup from ‘path`.
Constructor Details
#initialize(progress) ⇒ Task
Returns a new instance of Task.
5 6 7 |
# File 'lib/backup/task.rb', line 5 def initialize(progress) @progress = progress end |
Instance Method Details
#dump(path, backup_id) ⇒ Object
dump task backup to ‘path`
13 14 15 |
# File 'lib/backup/task.rb', line 13 def dump(path, backup_id) raise NotImplementedError end |
#post_restore_warning ⇒ Object
a string returned here will be displayed to the user after calling #restore
27 28 |
# File 'lib/backup/task.rb', line 27 def post_restore_warning end |
#pre_restore_warning ⇒ Object
a string returned here will be displayed to the user before calling #restore
23 24 |
# File 'lib/backup/task.rb', line 23 def pre_restore_warning end |
#restore(path) ⇒ Object
restore task backup from ‘path`
18 19 20 |
# File 'lib/backup/task.rb', line 18 def restore(path) raise NotImplementedError end |