Created
June 21, 2011 08:21
-
-
Save aurelian/1037451 to your computer and use it in GitHub Desktop.
This file contains 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
if [[ -s "~/.rvm/environments/ruby-1.9.2-p180@mygemset" ]] ; then | |
. "~/.rvm/environments/ruby-1.9.2-p180@mygemset" | |
else | |
rvm --create use "ruby-1.9.2-p180@mygemset" 1> /dev/null | |
fi | |
if ! which bundle 1>/dev/null ; then | |
rvm gemset import mygemset.gems | |
fi | |
bundle check 1>/dev/null | |
if [ "$?" -ne "0" ]; then | |
bundle install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment