2011-07-14 19:50:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-08-18 17:22:01 +00:00
|
|
|
OLD_GIT_DIR=$GIT_DIR
|
|
|
|
|
2012-04-18 17:22:38 +00:00
|
|
|
if [ "$(penchant gemfile-env)" != "remote" ]; then
|
|
|
|
penchant gemfile remote
|
|
|
|
fi
|
|
|
|
|
|
|
|
bundle exec rake
|
|
|
|
R=$?
|
|
|
|
if [ $R -ne 0 ]; then exit $R; fi
|
|
|
|
|
2011-10-13 18:27:02 +00:00
|
|
|
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
|
2011-08-18 18:53:55 +00:00
|
|
|
unset GIT_DIR
|
2011-10-13 14:01:18 +00:00
|
|
|
penchant gemfile remote --deployment
|
2011-08-18 18:53:55 +00:00
|
|
|
GIT_DIR=$OLD_GIT_DIR
|
2011-08-18 21:37:54 +00:00
|
|
|
git add Gemfile*
|
2011-08-18 18:53:55 +00:00
|
|
|
fi
|
2011-07-14 20:51:54 +00:00
|
|
|
|