How do I rename a gemset?

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

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.


I copied one with

rvm gemset copy <gemset_from> <gemset_dest>

and then deleted the previous one with

rvm gemset delete <gemset_from> 

It's a RVM bug!

Solved in this pull request: https://github.com/wayneeseguin/rvm/issues/592#issuecomment-2705466 Commit: https://github.com/jwhitley/rvm/commit/619e5265927cf6c842ec3561345569af474ed20e


If you get the error that your gemset doesn't exist, but it exist you have to chose appropriate ruby version!

For example, if you have gemset ree@something-x and you current rvm (rvm current) is ruby-1.9.3-p194 then you have to execute

rvm use ree

and then

rvm gemset rename something-x something-y

It works with rvm version 1.16.17


Need Your Help

Equivalent of C# anonymous methods in Java?

java c# delegates processing anonymous-function

In C# you can define delegates anonymously (even though they are nothing more than syntactic sugar). For example, I can do this:

Entity Framework Code First Fluent Api: Adding Indexes to columns

c# entity-framework-4 ef-code-first data-annotations fluent-interface

I'm running EF 4.2 CF and want to create indexes on certain columns in my POCO objects.