Execute a Rake task from another task February 18, 2008Posted by John Dewey in Example, Rake, Ruby.
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.