.rvmrc 494 Bytes
Newer Older
1
#!/bin/bash
2

Jonne Haß's avatar
Jonne Haß committed
3
source ./script/env/ruby_env
4

5 6 7
if [ -e '.rvmrc.local' ]; then
  source .rvmrc.local;
elif [ -e '.rvmrc_custom' ] ; then
8
  source .rvmrc_custom;
9
else
10 11 12 13 14 15 16
  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
17
fi
18

Jonne Haß's avatar
Jonne Haß committed
19
source ./script/env/ensure_right_rubygems