Calling a task in rant at any time (not just as a prerequisi

In rant, we call a task by denoting it as a dependancy:

task :test => [:build] do # calls :build before :test

How do you call a task at the end of (or inside) a block?

task :myaction do
-some action-

task :otheraction do
-some stuff here-
*** how to call :myaction here? **
end (** or here? **)


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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs