/
use
43 lines (24 loc) · 1.25 KB
/
use
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
∴ rvm use [ruby-string]
Setup current shell to use a specific ruby version.
For a list of currently installed ruby string please run
∴ rvm list
To create a gemset if it does not already exist:
∴ rvm --create 1.9.2@funky
For creating a project .rvmrc file - From within the app's root_dir:
∴ rvm --rvmrc 1.9.2@funky
Above commands can be also combined to do it all in one pass:
∴ rvm --rvmrc --create use 1.9.2@funky
Using /home/mpapis/.rvm/gems/ruby-1.9.2-p290 with gemset funky
Do not forget to check the generated .rvmrc file - it contains many useful
comments. Note you must still 'rvm rvmrc trust' the newly created .rvmrc
Please see documentation for further information:
https://rvm.io/rvm/basics
Also, you can combine the new flags --ruby-version and --version-conf
∴ rvm --create --ruby-version use 1.9.2@funky
Using /home/mpapis/.rvm/gems/ruby-1.9.2-p290 with gemset funky
∴ rvm --create --versions-conf use 1.9.2@funky
Using /home/mpapis/.rvm/gems/ruby-1.9.2-p290 with gemset funky
These files do not need to be trusted, however, if a .rvmrc file
exists, it will override the use of .ruby-version or .versions.conf!
Please see the documentation for further information:
https://rvm.io/workflow/projects#ruby-versions