Class: Gitlab::ImportExport::UploadsRestorer

Inherits:
UploadsSaver show all
Defined in:
lib/gitlab/import_export/uploads_restorer.rb

Instance Method Summary collapse

Methods inherited from UploadsSaver

#initialize, #save

Constructor Details

This class inherits a constructor from Gitlab::ImportExport::UploadsSaver

Instance Method Details

#restoreObject



6
7
8
9
10
11
12
13
14
# File 'lib/gitlab/import_export/uploads_restorer.rb', line 6

def restore
  Gitlab::ImportExport::UploadsManager.new(
    project: @project,
    shared: @shared
  ).restore
rescue StandardError => e
  @shared.error(e)
  false
end