From: James Britt Date: 2006-06-28T09:51:23+09:00 Subject: Re: Rake tasks for Trac? Michael Greenly wrote: > James Britt wrote: > >>Before I reinvent too many wheels, has anyone cooked up, or know about, >>handy Rake tasks for interacting with Trac? >> >> >>Thanks! >> >>(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not >>to find a Rake task cookbook site anyplace. ) >> >> >>-- >>James Britt >> >>"Take eloquence and wring its neck." >> - Paul Verlaine > > > I haven't but I'm curious? > > Which Trac tasks would you want to use through rake? > Adding tickets, for one thing. I want to (and, as of 1 hour ago, I can) run rake trac:post_task and answer a few prompts (summary, description, ticket type [defaults to task] ) and have a new ticket created in Trac. Or run rake trac:tickets_for james and get back a plain-text list of open tickets assigned to me. The first I can now do. The second is not a big need (I just made it up, actually), but reasonably useful, and easy enough to code (pulling stuff from Trac is easier than pushing). It would be more interesting if I could query for tickets that way, see if there are any tickets related to something or other (tag/keyword search), and then add a ticket if I need to. These are the sorts of little things that I'd like to do from the command line while working, to avoid the psychic disruption of clicking around a Web page. -- James Britt "I was born not knowing and have had only a little time to change that here and there." - Richard P. Feynman