debian-mirror-gitlab/app/workers/project_export_worker.rb

13 lines
321 B
Ruby
Raw Normal View History

2016-06-22 15:30:34 +05:30
class ProjectExportWorker
include Sidekiq::Worker
2016-08-24 12:49:21 +05:30
sidekiq_options queue: :gitlab_shell, retry: 3
2016-06-22 15:30:34 +05:30
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