zq9ryw
Last Updated: February 25, 2016
·
1.149K
· dperrymorrow
37b092a324da25d53fd63d780692b174

.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
Say Thanks
Respond

2 Responses
Add your response

1894
Cd93483c1bb616efb5480b639dbb9ca3

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

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

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 ·