BigW Consortium Gitlab

system_hook.rb 223 Bytes
Newer Older
1
class SystemHook < WebHook
Valeriy Sizov committed
2 3 4 5
  
  def async_execute(data)
    Resque.enqueue(SystemHookWorker, id, data)
  end
6

Valeriy Sizov committed
7 8 9 10 11 12
  def self.all_hooks_fire(data)
    SystemHook.all.each do |sh|
      sh.async_execute data
    end
  end
  
13
end