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

10 lines
176 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class ProjectWebHookWorker
include Sidekiq::Worker
sidekiq_options queue: :project_web_hook
def perform(hook_id, data)
WebHook.find(hook_id).execute data
end
end