Skip to content

Instantly share code, notes, and snippets.

@pillowfactory
Created October 4, 2010 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pillowfactory/610477 to your computer and use it in GitHub Desktop.
Save pillowfactory/610477 to your computer and use it in GitHub Desktop.
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