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

13 lines
337 B
Ruby
Raw Normal View History

2015-04-06 13:36:56 +00:00
class ForkRegistrationWorker
2015-04-06 12:20:58 +00:00
include Sidekiq::Worker
sidekiq_options queue: :default
def perform(from_project_id, to_project_id, private_token)
from_project = Project.find(from_project_id)
to_project = Project.find(to_project_id)
2015-04-06 13:36:56 +00:00
from_project.gitlab_ci_service.fork_registration(to_project, private_token)
2015-04-06 12:20:58 +00:00
end
end