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?
I haven't tried it, but a quick search revealed this.