only do deployment gemfile generation after successful remote-only generation. good for ripping out testing libraries from deploys, but still keeping them around for running the default rake task

This commit is contained in:
John Bintz 2012-04-18 13:22:38 -04:00
parent 9354fed2dc
commit b8e03e9acd
1 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,14 @@
OLD_GIT_DIR=$GIT_DIR OLD_GIT_DIR=$GIT_DIR
if [ "$(penchant gemfile-env)" != "remote" ]; then
penchant gemfile remote
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
unset GIT_DIR unset GIT_DIR
penchant gemfile remote --deployment penchant gemfile remote --deployment
@ -9,7 +17,3 @@ if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
git add Gemfile* git add Gemfile*
fi fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi