-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rvmrc
22 lines (19 loc) · 624 Bytes
/
.rvmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
failed=1
gemset=ppjson
rubies="ruby-1.9.3-p362 ruby-1.9.3-p194 ruby-1.9.2-p290 "
for ruby in $rubies; do
rvm use $ruby@$gemset --create 1>/dev/null 2>&1
if [ $? == 0 ]; then
echo
echo ">>" rvm is using $ruby@$gemset
echo
failed=0
break
fi
done
if [ $failed == 1 ]; then
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo cannot find a ruby runtime in the set: $rubies, please install one
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fi