How to link rvm to eclipse settings

I am developing several instances of ruby ​​and gemset for different applications. To switch between my ruby ​​versions and gemset, I use the .rvmrc file. I also use Eclipse with the radrails plugin as my development tool. Is there a way to get eclipse to automatically switch between different gemsets and the ruby ​​version using rvm?

+6
source share
1 answer
  Go into your project directory and create a file called .rvmrc containing the line:

 rvm use ruby-1.8.7-p330@testing --default
 (or whatever ruby ​​version / gemset you like)

 now do
 cd ..
 cd -
 answer "y"
 and now Eclipse should use the specified ruby ​​version
 (maybe you need to restart Eclipse first). 
+2
source

Source: https://habr.com/ru/post/891202/


All Articles