gitlabhq/app/workers/system_hook_worker.rb

10 lines
170 B
Ruby
Raw Normal View History

2012-07-15 14:29:06 +02:00
class SystemHookWorker
2013-01-09 06:14:05 +01:00
include Sidekiq::Worker
2012-07-15 14:29:06 +02:00
2013-01-09 06:14:05 +01:00
sidekiq_options queue: :system_hook
def perform(hook_id, data)
2012-07-15 14:29:06 +02:00
SystemHook.find(hook_id).execute data
end
end