Search code examples
rubyruby-on-rails-4command-linerubymine-7

Can I open the ruby app from Rubymine terminal


I just got Rubymine and getting used to ruby on rails on mac. I'm wondering if there is any command to open a ruby app on Rubymine 7, from terminal.

Would there be a command like this?

$ Rubymine /Path/to/RubyApp

Solution

  • The standard way to do it on bash/OSX from the JetBrains site:

    $<RubyMine> <path1> --line<number> <path2>

    That's the launcher, the path to the project, the line you want the file to open to and the path to the file in order. An example would be: /Applications/RubyMine.app/Contents/MacOS/rubymine ~/RubyMineProjects/untitled45 --line 1 ~/RubyMineProjects/untitled45/sample.sass These can be pretty long commands, but you can create a symlink to shorten the launcher at least.

    Keep in mind that launching from the command line launches with the ruby version you have set there as well as any other command line configs. If you want to keep configurations from the editor you should open the project the conventional way.