.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
Written by David Morrow
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#