gitlab-org--gitlab-foss/app/workers/system_hook_worker.rb
2015-05-08 16:49:03 +03:00

9 lines
193 B
Ruby

class SystemHookWorker
include Sidekiq::Worker
sidekiq_options queue: :system_hook
def perform(hook_id, data, hook_name)
SystemHook.find(hook_id).execute(data, hook_name)
end
end