gitlab-org--gitlab-foss/app/workers/project_export_worker.rb
Tiago Botelho 5248e37f27 Adds the option to override project description on export via API
and fixes the project description not being imported
2018-03-16 13:56:11 +00:00

14 lines
395 B
Ruby

class ProjectExportWorker
include ApplicationWorker
include ExceptionBacktrace
sidekiq_options retry: 3
def perform(current_user_id, project_id, params = {})
params = params.with_indifferent_access
current_user = User.find(current_user_id)
project = Project.find(project_id)
::Projects::ImportExport::ExportService.new(project, current_user, params).execute
end
end