penchant/template/script/hooks/pre-commit

15 lines
265 B
Plaintext
Raw Normal View History

2011-07-14 19:50:51 +00:00
#!/bin/bash
if [ $(bundle exec rake -P | grep preflight_check | wc -l) -ne 0 ]; then
bundle exec rake preflight_check
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi
2012-04-20 18:52:57 +00:00
unset GIT_DIR
penchant gemfile remote --deployment
GIT_DIR=$OLD_GIT_DIR
git add Gemfile*
2011-07-14 20:51:54 +00:00
exit 0