Skip to content

Instantly share code, notes, and snippets.

Last active Dec 24, 2015
What would you like to do?
after "deploy", "deploy:notify_revision"
namespace :deploy do
task :notify_revision do
user_name = `git config --global`.gsub("\n", '')
github_path = "{current_revision}"
body = "#{user_name} deployed a new version of plife (#{current_revision[0...8]}) #{github_path}"
idobata_hook_url = "" # Room Settings > Manage hooks
run "curl #{idobata_hook_url} -d 'body=#{body}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment