Class: BackupRestorer::Restorer
- Inherits:
-
Object
- Object
- BackupRestorer::Restorer
- Defined in:
- lib/backup-restorer.rb
Instance Method Summary collapse
-
#initialize(type, files) ⇒ Restorer
constructor
A new instance of Restorer.
- #restore ⇒ Object
Constructor Details
#initialize(type, files) ⇒ Restorer
Returns a new instance of Restorer.
3 4 5 6 7 |
# File 'lib/backup-restorer.rb', line 3 def initialize(type, files) @type = type @files = files @file_paths = get_file_paths end |
Instance Method Details
#restore ⇒ Object
9 10 11 |
# File 'lib/backup-restorer.rb', line 9 def restore @type == "local" ? restore_local : restore_remote end |