Basic Gemset Management
04/11/2013, ThuCRUD for your rvm gemset
Rvm stands for ruby version manager. It is used to manage ruby environments with something called gemsets. More info can be found here. Rvm comes in handy when you're working with Rails because you can isolate ruby environments. Here are some snippets for common tasks when dealing with gemsets.
# Creating a Gemset
# Format:
rvm gemset create <gemset_name>
# fill in gemset name
# Example:
rvm gemset create rails3.2.13
# gemset name is "rails3.2.13"
# List Current Gemset Being Used
rvm gemset list
# Using a Gemset
# Format:
rvm use <ruby_version_number>@<gemset_name>
# fill in ruby version number and gemset name of your choosing
# Example:
# uses ruby 1.9.3 with gemset name of "rails version 3.2.13"
rvm use 1.9.3@rails3.2.13 --default
# also using a default flag to set the gemset as the default
# Deleting a Gemset
# Format:
rvm gemset delete <gemset_name>
# fill in gemset name
# Example:
rvm gemset delete gemset_to_delete
#"gemset_to_delete" is the gemset that you want to delete