Skip to content

Instantly share code, notes, and snippets.

@hgmnz
Forked from jferris/after_restart.rb
Created August 9, 2011 21:52
Show Gist options
  • Save hgmnz/1135294 to your computer and use it in GitHub Desktop.
Save hgmnz/1135294 to your computer and use it in GitHub Desktop.
notify_deploy_environments = %w(staging production integration)
notify_deploy_roles = %w(solo app_master)
if notify_deploy_environments.include?(@configuration[:environment]) && notify_deploy_roles.include?(node['instance_role'])
run "cd #{release_path} && bundle exec rake hoptoad:deploy TO=#{@configuration[:environment].strip} REVISION=#{@configuration[:revision].strip} USER=`whoami` REPO=#{@configuration[:repo].strip}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment