You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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