Created
November 16, 2011 22:52
-
-
Save punund/1371770 to your computer and use it in GitHub Desktop.
.rvmrc common template
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
_RUBY=ruby-1.9.3 | |
_PROJECT=dia-x | |
export rvm_gem_options="--no-rdoc --no-ri" | |
if [[ -s "${rvm_path:-$HOME/.rvm}/environments/$_RUBY@$_PROJECT" ]] | |
then | |
. "${rvm_path:-$HOME/.rvm}/environments/$_RUBY@$_PROJECT" | |
else | |
rvm --create use "$_RUBY@$_PROJECT" | |
gem install bundler $rvm_gem_options | |
fi | |
# check for and install missing gems | |
[ -s Gemfile ] && bundle check || bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment