Skip to content

Instantly share code, notes, and snippets.

View z0lope0z's full-sized avatar

Lope Chupijay Emano z0lope0z

View GitHub Profile
@z0lope0z
z0lope0z / post-merge.rb
Created March 18, 2016 08:22
git hook for sending email regarding migration changes
#!/usr/bin/env ruby
require 'pony'
def send_mail(to, from, message)
Pony.mail({
:to => to,
:via => :smtp,
:from => from,
:subject => 'new migrations detected for master branch',
:body => message,