From: Eric Armstrong Date: 2006-07-29T07:40:08+09:00 Subject: Re: calling a task in rant at any time (not just as a prerequisite) In Rake, I put the contents of the :myaction task into a method. Then invoke the method from either task. Beats the hell out of make or ant... bwv549 wrote: > In rant, we call a task by denoting it as a dependancy: > > task :test => [:build] do # calls :build before :test > -whatever- > end > > How do you call a task at the end of (or inside) a block? > > task :myaction do > -some action- > end > > task :otheraction do > -some stuff here- > *** how to call :myaction here? ** > end (** or here? **) > > Thanks > >