Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run the annotate gem inside rubymine

Tags:

gem

rubymine

New to rails - what am I missing? Working through Hartl's Rails Tutorial, have been able to find ways to run all the previous "bundle exec" commands from inside RubyMine. But now I've installed the annotate gem (Chapter 6); the tutorial's instructions are to run "bundle exec annotate". Is there an equivalent that can be run from inside Rails?

(I've discovered how to run RSpec, git push, etc., from inside Rubymine but I can't find how to do this one.)

Thanks in advance for your help.

like image 697
user1985671 Avatar asked Jan 17 '13 01:01

user1985671


1 Answers

(RubyMine 5.0)

  1. Run > Edit Configurations...
  2. "Add New Configuration" (Green '+' upper left) > "Gem Command"
  3. Name = "Annotate Gem"
  4. Configuration tab > Gem name = annotate, Executable name = annotate
  5. Bundler tab > enable "Run the script in context of the bundle (bundle exec)"
  6. OK button to save configuration
  7. Toolbar > Configuration selector = "Annotate Gem", click the Run button
  8. Output displayed in the Run panel
like image 175
nmarler Avatar answered Oct 22 '22 07:10

nmarler