Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I rename a gemset?

Tags:

ruby

rvm

Is there an RVM command to simply rename a gemset? I couldn't find it on the RVM site.

like image 398
Jason Galvin Avatar asked Sep 30 '10 18:09

Jason Galvin


2 Answers

There is an RVM gemset rename command. I'm not sure when it was introduced but it is present in 1.0.16.

rvm gemset rename current_gemset_name new_gemset_name 

As of RVM 1.21 or higher it will automatically switch you to the newly renamed gemset.

If you are on an older version of RVM you'll also need to switch to the newly created gemset, as follows:

rvm gemset use new_gemset_name 

Running the command rvm gemset list will tell you the current gemset you are operating within.

like image 50
pakeha Avatar answered Sep 21 '22 13:09

pakeha


I copied one with

rvm gemset copy <gemset_from> <gemset_dest> 

and then deleted the previous one with

rvm gemset delete <gemset_from>  
like image 31
DanielG Avatar answered Sep 19 '22 13:09

DanielG