debian-mirror-gitlab/lib/gitlab/import_export/uploads_saver.rb

23 lines
413 B
Ruby
Raw Normal View History

2019-02-13 22:33:31 +05:30
# frozen_string_literal: true
2016-06-22 15:30:34 +05:30
module Gitlab
module ImportExport
class UploadsSaver
def initialize(project:, shared:)
@project = project
@shared = shared
end
def save
2018-11-08 19:23:39 +05:30
Gitlab::ImportExport::UploadsManager.new(
project: @project,
shared: @shared
).save
2016-06-22 15:30:34 +05:30
rescue => e
@shared.error(e)
false
end
end
end
end