debian-mirror-gitlab/app/workers/project_web_hook_worker.rb
2014-09-02 14:37:02 +02:00

9 lines
176 B
Ruby

class ProjectWebHookWorker
include Sidekiq::Worker
sidekiq_options queue: :project_web_hook
def perform(hook_id, data)
WebHook.find(hook_id).execute data
end
end