2011-08-18 21:45:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
OLD_GIT_DIR=$GIT_DIR
|
|
|
|
|
|
|
|
if [ "$(penchant gemfile-env)" != "remote" ]; then
|
|
|
|
unset GIT_DIR
|
2011-10-13 14:01:18 +00:00
|
|
|
penchant gemfile remote --deployment
|
2011-08-18 21:45:59 +00:00
|
|
|
GIT_DIR=$OLD_GIT_DIR
|
|
|
|
git add Gemfile*
|
|
|
|
fi
|
|
|
|
|
|
|
|
bundle exec rake
|
|
|
|
R=$?
|
|
|
|
if [ $R -ne 0 ]; then exit $R; fi
|
|
|
|
|