RVM and Command Line Tools
Hi,
I was wondering if anyone could guide me on how to configure Command Line Tools to use a specific version of Ruby (via RVM). So for example, in Terminal on my Mac I have installed and configured RVM to use a specific version of Ruby by: rvm use 1.9.2, so now when I open a terminal window my system is configured to use this version which I can check via: ruby -v which displays 1.9.2. This is achived by the following script https://github.com/wayneeseguin/rvm/blob/master/scripts/rvm
In IDEA if I fire up command line tools and type ruby -v it displays the old original system default ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
How do I configure IDEA in the same manner?
请先登录再写评论。
Hi!
You may create new framework with alias ruby and tool path $path_to_new_ruby_installation$. It should help.
Regards,
Elena
Hi Elena,
Thanks for your swift reply, could you please digress on:
This is something I am unfamiliar with in IDEA and have no idea where I would do this?
Cheers,
Simon
Ok ignore that, I have now dug around and discovered the doc link to what I think you meant:
http://www.jetbrains.com/idea/webhelp/enabling-a-command-line-tool.html
And here is the final success:
<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.xsd" name="Ruby" invoke="/Users/newtriks/.rvm/rubies/ruby-1.9.2-p180/bin/ruby" alias="ruby" enabled="true" version="1">
<help><![CDATA[Ruby version 1.9.2 rvm instance]]></help>
</framework>
Message was edited by: Simon Bailey adding the resulting successful code