Created
October 14, 2011 10:34
-
-
Save anonymous/1286782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Ensure RVM is loaded by calling /etc/profile.d/rvm.sh" | |
[[ -s /etc/profile.d/rvm.sh ]] && source /etc/profile.d/rvm.sh | |
printf "1 - Selecting system ruby\n" | |
rvm use system | |
rvm info | |
printf "2 - Printing current ruby\n" | |
ruby --version | |
printf "3 - Listing installed RVM-controlled rubies\n" | |
rvm list | |
printf "4 - Setting Ruby 1.8.7 as default\n" | |
rvm use 1.8.7 --default | |
rvm info | |
printf "5 - Running: rvm default do 'ruby -v ; gem -v' \n" | |
rvm default do 'ruby -v && gem -v' | |
printf "6 - Running: gem -v against Ruby 1.9.2 (non-default)\n" | |
rvm 1.9.2 do "ruby -v && gem -v" | |
printf "7 - Running: rvm info on default ruby\n" | |
rvm info | |
printf "8 - Running: rvm do gem -v # gem -v against all installed rubies\n" | |
rvm do gem -v | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment