Created
October 4, 2010 21:34
-
-
Save pillowfactory/610477 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
function rvm_require_ruby { | |
if [ "`rvm list | grep $1`" = "" ] | |
then | |
echo "ERROR: Requires Ruby Version: $1" | |
exit | |
fi | |
} | |
function rvm_use { | |
rvm_require_ruby $1 | |
rvm use $1 | |
} | |
function rvm_require_gemset { | |
if [ "`rvm gemset list | grep $1`" = "" ] | |
then | |
echo "ERROR: Requires requires RVM Gemset: $1" | |
exit | |
fi | |
} | |
function rvm_gemset_use { | |
rvm_require_gemset $1 | |
rvm gemset use $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment