Home

fs edited this page Sep 13, 2010 · 4 revisions
Clone this wiki locally

<pre> #!/usr/bin/env ruby

require ‘rubygems’ require ‘rgithook’ pack = RGitHook::PostReceivePack.new(STDIN.read) pack.each do |branch| case branch.ref when /master$/ branch.sendmail puts “Deployando en dev.lacoctelera.com” when /production$/ puts “Has comiteado sobre producción” branch.sendmail when /photos$/ puts “Has comiteado sobre #{branch.ref}” end end