jerhinesmith
jerhinesmith

Reputation: 15492

Automating rake doc:app

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?

Upvotes: 0

Views: 967

Answers (2)

Drew Dara-Abrams
Drew Dara-Abrams

Reputation: 8054

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.

Upvotes: 1

sarahhodne
sarahhodne

Reputation: 10116

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.

Upvotes: 1

Related Questions