2011-12-13 01:03:26 +01:00
|
|
|
class PostReceive
|
2012-01-03 23:42:14 +01:00
|
|
|
@queue = :post_receive
|
|
|
|
|
2011-12-13 01:03:26 +01:00
|
|
|
def self.perform(reponame, oldrev, newrev, ref)
|
2011-12-14 17:38:52 +01:00
|
|
|
project = Project.find_by_path(reponame)
|
|
|
|
return false if project.nil?
|
|
|
|
|
|
|
|
project.execute_web_hooks(oldrev, newrev, ref)
|
2011-12-13 01:03:26 +01:00
|
|
|
end
|
|
|
|
end
|