Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving my RVM project gemset to another patchlevel

Tags:

rvm

My project has an .rvmrc file with the following: rvm 1.9.2-p180@project_name. However, I just updated my ruby 1.9.2 to the latest patch level (1.9.2-p290). Is there any way to migrate the gems in the project_name gemset to 1.9.2-p290?

like image 661
ph0rque Avatar asked Jul 23 '11 12:07

ph0rque


People also ask

How do I remove Gemset from RVM?

You need to "rvm gemset empty [gemset_name]". I suppose if you have many gems, it could take a while to uninstall them all. Incidentally right now I am able to run rvm gemset empty and it clears the current gemset.

What is Gemset in RVM?

If you are using RVM(Ruby Version Manager) then using a gemset for each project is a good idea. A gemset is just a container you can use to keep gems separate from each other. Creating a gemset per project allows you to change gems (and gem versions) for one project without breaking all your other projects.

How do I create a Gemset in RVM?

Step 1: rvm gemset create [name of gemset] Step 2: rvm --rvmrc [ruby version here]@[name of gemset] # Note: You can check your current ruby version by running "ruby -v" from your console. Step 3: Refresh your directory. # You can simply do this by checking out of your directory and going back to that directory again.


1 Answers

You can copy gemsets with the following command:

rvm gemset copy 1.9.2-p180@project_name 1.9.2-p290@project_name
like image 139
Michelle Tilley Avatar answered Jan 01 '23 21:01

Michelle Tilley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!