2011-08-23 22:54:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
OLD_GIT_DIR=$GIT_DIR
|
|
|
|
|
2012-01-09 18:20:58 +00:00
|
|
|
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
|
2011-08-23 22:54:23 +00:00
|
|
|
unset GIT_DIR
|
2012-01-09 18:20:58 +00:00
|
|
|
penchant gemfile remote --deployment
|
2011-08-23 22:54:23 +00:00
|
|
|
GIT_DIR=$OLD_GIT_DIR
|
|
|
|
git add Gemfile*
|
|
|
|
fi
|
|
|
|
|
|
|
|
bundle exec rake
|
|
|
|
R=$?
|
|
|
|
if [ $R -ne 0 ]; then exit $R; fi
|
|
|
|
|