gitlabhq/app/models/system_hook.rb

14 lines
223 B
Ruby
Raw Normal View History

class SystemHook < WebHook
2012-07-15 14:29:06 +02:00
def async_execute(data)
Resque.enqueue(SystemHookWorker, id, data)
end
2012-07-15 14:29:06 +02:00
def self.all_hooks_fire(data)
SystemHook.all.each do |sh|
sh.async_execute data
end
end
end