Skip to content

Instantly share code, notes, and snippets.

@jferris
Forked from jasonm/after_restart.rb
Created August 6, 2010 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jferris/511858 to your computer and use it in GitHub Desktop.
Save jferris/511858 to your computer and use it in GitHub Desktop.
notify_deploy_environments = %w(staging production)
notify_deploy_roles = %w(solo app_master)
if notify_deploy_environments.include?(@configuration[:environment]) && notify_deploy_roles.include?(node['instance_role'])
# Notify Hoptoad of deploy
run "cd #{release_path} && rake hoptoad:deploy TO=#{@configuration[:environment]} REVISION=#{@configuration[:revision]} REPO=#{@configuration[:repository]}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment