1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-08 09:38:04 +00:00

Add Generate Ruby Version And Gemset Files With RVM as a ruby til

This commit is contained in:
jbranchaud
2018-11-16 14:30:44 -06:00
parent 8a99f62b59
commit 7a7724f0c1
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
# Generate Ruby Version And Gemset Files With RVM
[RVM](https://rvm.io), the ruby version manager, is a fairly flexible tool
that supports a number of workflows. The `rvm` utility can be used to
generate both a `.ruby-version` file and a `.ruby-gemset` file for a given
project.
```bash
$ rvm --ruby-version use 2.5.3@my_project
```
This will generate a `.ruby-version` file in your current project directory
that points RVM to the `2.5.3` version of Ruby. It will also create a
`.ruby-gemset` file that RVM will use for managing this project's gemset.