Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (29 sloc) 1.478 kb
source "$rvm_path/scripts/rvm"
: prepare
d=${TMPDIR:=/tmp}/test-rvm-shell/ # status=0
mkdir -p $d # status=0
echo "rvm current" > $d/rvm-shell-rvm-current-script.sh # status=0
chmod +x $d/rvm-shell-rvm-current-script.sh
rvm use 2.1.0 --install
rvm use system
: Test1
echo "rvm use 2.1.0@acme --create" > $d/.rvmrc # status=0
ls -ld $d/.rvmrc
rvm rvmrc trust $d/.rvmrc # status=0
rvm $d do rvm current # match=/ruby-2.1.0@acme/
rvm-shell --path $d -c "rvm current" # match=/ruby-2.1.0@acme/
rvm $d do $d/rvm-shell-rvm-current-script.sh # match=/ruby-2.1.0@acme/
rvm-shell --path $d $d/rvm-shell-rvm-current-script.sh # match=/ruby-2.1.0@acme/
rvm use $d # env[GEM_HOME]=/ruby-2.1.0@acme$/
rvm use system
: Test2
echo "rvm 2.1.0@acme --create" > $d/.rvmrc # status=0
ls -ld $d/.rvmrc
rvm rvmrc trust $d/.rvmrc # status=0
rvm $d do rvm current # match=/ruby-2.1.0@acme/
rvm-shell --path $d -c "rvm current" # match=/ruby-2.1.0@acme/
rvm $d do $d/rvm-shell-rvm-current-script.sh # match=/ruby-2.1.0@acme/
rvm-shell --path $d $d/rvm-shell-rvm-current-script.sh # match=/ruby-2.1.0@acme/
rvm $d # env[GEM_HOME]=/ruby-2.1.0@acme$/
: Cleaning
rm -rf $d # status=0
Jump to Line
Something went wrong with that request. Please try again.