0

For you rails programmers, what's the easiest way to keep your RDoc files up-to-date?

I know I can run rake doc:app manually, but I really don't feel like adding a manual step to the check-in process, and since we're already using cruisecontrolrb to handle deployment and testing automation, it seems like there should be an easy way to regenerate these files on check-in.

Is anyone already automating rake doc:app? And, if so, what are your suggestions?

jerhinesmith
  • 15,214
  • 17
  • 62
  • 89

2 Answers2

1

Guard is a nice, general purpose system that watches for changes in a Rails project. Add in the guard-rake gem and you can have it trigger the rake doc:app task whenever files change.

Drew Dara-Abrams
  • 8,016
  • 11
  • 40
  • 48
1

How about adding it to crontabs? If you don't like the syntax, you could try using the whenever gem, which Ryan Bates' has made an excellent Railscasts episode on.

sarahhodne
  • 9,796
  • 3
  • 39
  • 44