Is there a "method_missing" for rake tasks?

Posted by James Wenton on Stack Overflow See other posts from Stack Overflow or by James Wenton
Published on 2010-04-23T15:17:06Z Indexed on 2010/04/23 20:33 UTC
Read the original article Hit count: 163

Filed under:
|
|

If my Rakefile does not find a task with a particular name, I'd like rake to instead create a new task by that name according to certain rules, if a file with the missing task name exists. But if it doesn't, I want to fall back to the default ("Don't know how to build task 'foo'!").

In short, is there a method_missing for Rake?

© Stack Overflow or respective owner

Related posts about rake

Related posts about ruby