debian-mirror-gitlab/app/workers/project_service_worker.rb
2018-03-17 18:26:18 +05:30

10 lines
206 B
Ruby

class ProjectServiceWorker
include ApplicationWorker
sidekiq_options dead: false
def perform(hook_id, data)
data = data.with_indifferent_access
Service.find(hook_id).execute(data)
end
end