jump to navigation

Execute a Rake task from another task February 18, 2008

Posted by John Dewey in Example, Rake, Ruby.
trackback

Executing a Rake task from inside another Rake task is a nice addition to your toolshed.  Passing parameters to the Rake task is even cooler.  ’Rake::Task["TaskName"].execute’ and ‘Rake::Task["TaskName"].invoke‘ to the rescue.  A Rakefile that demonstrates the execution of a task with parameter passing.

Comments»

1. rikas - April 8, 2008

Nice, just what i needed.

Thanks!