2018-11-17 00:37:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-05-19 13:36:20 +00:00
|
|
|
module Gitlab
|
|
|
|
module ImportExport
|
|
|
|
class UploadsRestorer < UploadsSaver
|
2016-06-13 11:34:36 +00:00
|
|
|
def restore
|
2018-08-29 13:41:56 +00:00
|
|
|
Gitlab::ImportExport::UploadsManager.new(
|
|
|
|
project: @project,
|
|
|
|
shared: @shared
|
|
|
|
).restore
|
2016-05-19 13:36:20 +00:00
|
|
|
rescue => e
|
|
|
|
@shared.error(e)
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|