Skip to content

Instantly share code, notes, and snippets.

@luckydev
Created November 13, 2010 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckydev/675177 to your computer and use it in GitHub Desktop.
Save luckydev/675177 to your computer and use it in GitHub Desktop.
gemset instructions for example
### How RVM can be used to manage multiple projects in multiple ruby environments #####
$ rvm install ruby-1.9.2
...
$ rvm list
rvm rubies
=> ree-1.8.7-head [ i386 ]
ruby-1.9.2-head [ i386 ]
ruby-1.9.2-preview3 [ i386 ]
$ rvm use ruby-1.9.2-preview3
info: Using ruby 1.9.2 preview3
$ rvm gemset create my_project
info: Gemset 'my_project' created.
rvm gemset use my_project
info: Now using gemset 'my_project'
$ gem install httparty
When you HTTParty, you must party hard!
Successfully installed crack-0.1.8
Successfully installed httparty-0.6.1
2 gems installed
$ rvm alias create my_project ruby-1.9.2-preview3@my_project
info: Creating alias my_project for ruby-1.9.2-preview3@my_project.
info: Recording alias my_project for ruby-1.9.2-preview3@my_project.
$ rvm use my_project
info: Using ruby 1.9.2 preview3 with gemset my_project
$ ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment