Basic Gemset Management

CRUD 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 your working with Rails because you can isolate ruby environments. Here are some snippets for common tasks when dealing with gemsets.

Creating a Gemset
1
2
3
4
5
6
7
#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
1
rvm gemset list
Using a Gemset
1
2
3
4
5
6
7
8
#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
1
2
3
4
5
6
7
#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