Class: BackupRestorer::Restorer

Inherits:
Object
  • Object
show all
Defined in:
lib/backup-restorer.rb

Instance Method Summary collapse

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

#restoreObject



9
10
11
# File 'lib/backup-restorer.rb', line 9

def restore
  @type == "local" ? restore_local : restore_remote
end