Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created June 21, 2011 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurelian/1037451 to your computer and use it in GitHub Desktop.
Save aurelian/1037451 to your computer and use it in GitHub Desktop.
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