Sha256: df80dc548536c7e89e66bbbf11dbe0c0f24279e0514712d977bc47415c90f73b
Contents?: true
Size: 927 Bytes
Versions: 24
Compression:
Stored size: 927 Bytes
Contents
#!/bin/sh # Setup heroku application remotes if heroku auth:whoami &> /dev/null; then if heroku apps:info --app <%= get(:heroku_app_name_staging) %> &> /dev/null; then git remote add staging git@heroku.com:<%= get(:heroku_app_name_staging) %>.git || true git config heroku.remote staging echo 'You are a collaborator on the "<%= get(:heroku_app_name_staging) %>" Heroku app' else echo 'Ask for access to the "<%= get(:heroku_app_name_staging) %>" Heroku app' fi if heroku apps:info --app <%= get(:heroku_app_name_production) %> &> /dev/null; then git remote add production git@heroku.com:<%= get(:heroku_app_name_production) %>.git || true echo 'You are a collaborator on the "<%= get(:heroku_app_name_production) %>" Heroku app' else echo 'Ask for access to the "<%= get(:heroku_app_name_production) %>" Heroku app' fi else echo 'You need to login to heroku. Run "heroku login"' fi
Version data entries
24 entries across 24 versions & 1 rubygems