Is it possible from within a rake task to get a list of tasks in a namespace? A sort of programatic \'rake -T db\' ?
I've found out the answer:
tasks = Rake.application.tasks
This will return an array of Rake::Task objects that can be examined. Further details at http://rake.rubyforge.org/