There doesn't seem to be a nice interface for grabbing tasks in a
namespace. Naively, I tried Rake::NameSpace['my_namespace'] to see if
I got a NameSpace returned, which I didn't.
I have been using the following workaround:
tasks = Rake.application.tasks.select{ |task| task.name =~
/app:dependencies/ }
I want to do this because I have a "app:dependencies" task which
ensures my system has all of the necessary application dependencies
installed. Any task which is put inside of the "app:dependencies"
namespace will automatically be run as a dependency check.
Is there a better way to do this that exists beside my above
workaround? If not, would this functionality be considered if a patch
was submitted for the NameSpace#[] method or is it seen as
unnecessary to rake itself?
Thanks,
--
Zach Dennis
http://www.continuousthinking.com
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel