开发者

How to bind rvm with eclipse's settings

开发者 https://www.devze.com 2023-03-16 23:39 出处:网络
I\'m developing using multiple ruby instances and gemset for different apps. In order to switch between my ruby versions and gemsets, I use the .rvmrc file. I also use Eclipse with the radrails plugin

I'm developing using multiple ruby instances and gemset for different apps. In order to switch between my ruby versions and gemsets, I use the .rvmrc file. I also use Eclipse with the radrails plugin as开发者_运维百科 my development tool. Is there any way to get eclipse to switch automatically between the different gemsets and ruby version using rvm?


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).
0

精彩评论

暂无评论...
验证码 换一张
取 消