Skip to content

Instantly share code, notes, and snippets.

@punund
Created November 16, 2011 22:52
Show Gist options
  • Save punund/1371770 to your computer and use it in GitHub Desktop.
Save punund/1371770 to your computer and use it in GitHub Desktop.
.rvmrc common template
_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