From: Mike Gold Date: 2008-09-25T01:02:48+09:00 Subject: Re: Rake dependencies unknown prior to running tasks Mike Gold wrote: > Joe Wę—¦lfel wrote: >> Say I don't know what all the dependencies are until I've already >> begun executing tasks? To what extent can I add new tasks and >> dependencies on the fly? > > This is what 'import' is for Sorry I just realized you meant that you actually create new tasks after the task invocations have begun. In this case, are you certain those things creating tasks should be tasks? It seems like you should have normal ruby classes/methods which determine which tasks to create, then create them. That is what I do. I think this strategy covers all cases, even though you may need to restructure your code. But in the end it's a cleaner approach, IMO. -- Posted via http://www.ruby-forum.com/.