2018-11-16 19:37:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-05-19 07:02:57 -04:00
|
|
|
module Gitlab
|
|
|
|
module ImportExport
|
|
|
|
class UploadsSaver
|
|
|
|
def initialize(project:, shared:)
|
|
|
|
@project = project
|
|
|
|
@shared = shared
|
|
|
|
end
|
|
|
|
|
|
|
|
def save
|
2018-07-10 10:33:40 -04:00
|
|
|
Gitlab::ImportExport::UploadsManager.new(
|
|
|
|
project: @project,
|
2018-07-11 05:36:59 -04:00
|
|
|
shared: @shared
|
|
|
|
).save
|
2016-05-19 07:02:57 -04:00
|
|
|
rescue => e
|
2016-05-19 09:37:21 -04:00
|
|
|
@shared.error(e)
|
2016-05-19 07:02:57 -04:00
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|