Created
November 6, 2014 12:49
-
-
Save methyl/6b5c23e1e46f8513615a to your computer and use it in GitHub Desktop.
Squerb Foundation helper functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## squerb | |
update_foundation () { | |
git stash save -q 'tmp_sqrb_foundation_stash' | |
bundle update squerb_foundation && git add Gemfile.lock && git commit -m 'update squerb_foundation' | |
RESULT=`git stash list | grep tmp_sqrb_foundation_stash` | |
if [ -n "$RESULT" ]; then | |
git stash pop | |
fi | |
} | |
local_foundation () { sed -i.bak "s/github: 'squerb\/squerb_foundation'/path: '..\/squerb_foundation'/g" Gemfile && rm Gemfile.bak && bundle && restart } | |
remote_foundation () { sed -i.bak "s/path: '..\/squerb_foundation'/github: 'squerb\/squerb_foundation'/g" Gemfile && rm Gemfile.bak && bundle && restart } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment