Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.494 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash

source ./script/env/ruby_env

if [ -e '.rvmrc.local' ]; then
  source .rvmrc.local;
elif [ -e '.rvmrc_custom' ] ; then
  source .rvmrc_custom;
else
  if rvm list strings | grep -q "$ruby_version" ; then
    rvm --create use "$ruby_version@$gemset"
  else
    echo -e "\e[00;31mPLEASE INSTALL RUBY $ruby_version WITH \`rvm install $ruby_version\`"
    echo -e "Don't forget to run \`cd .. && cd -\` afterwards!\e[00m"
    return 1
  fi
fi

source ./script/env/ensure_right_rubygems
Something went wrong with that request. Please try again.