gitlab-org--gitlab-foss/app/workers/project_export_worker.rb

13 lines
324 B
Ruby
Raw Normal View History

class ProjectExportWorker
include Sidekiq::Worker
2016-06-15 07:06:10 +00:00
sidekiq_options queue: :gitlab_shell, retry: true
def perform(current_user_id, project_id)
current_user = User.find(current_user_id)
project = Project.find(project_id)
::Projects::ImportExport::ExportService.new(project, current_user).execute
end
end