Last Updated: February 25, 2016
·
1.435K
· dperrymorrow

.rvmrc file that creates gemset if non-existant

.rvmrc file that specifies which ruby and which gemset to use.

What makes this snippet special is that it creates the gemset if it does not exist.

rvm use [ruby-version]@[gemset] --create --rvmrc

2 Responses
Add your response

An alternative is a .ruby-version file. Safer and simpler:

[ruby-version]@[gemset]
over 1 year ago ·

right, but the point of the example i posted is that it creates the gemset if it does not exist on the users computer.

thanks for the comment

over 1 year ago ·