post_receive.rb 234 Bytes
Newer Older
1
class PostReceive
2 3
  @queue = :post_receive

4
  def self.perform(reponame, oldrev, newrev, ref)
5 6 7 8
    project = Project.find_by_path(reponame)
    return false if project.nil?

    project.execute_web_hooks(oldrev, newrev, ref)
9 10
  end
end