Hi all,
I'm trying to use rake as a library/API to retrieve the rake tasks in a given directory.
Basically I'm looking to mimic the output of
rake --tasks --silent
Looking through the source code and trying out some stuff in irb I'm getting the impression this usage was not considered at design stage. But is it possible?
a = Rake::Application.new
=> #<Rake::Application:0x4e4c8...
a.init
...throws me out of IRB, as does "Rake::Application.new.run"
I've been trying for a good while to get around the above all to no avail.
Can this be done? Am I better off by just doing:
tasks = x%{rake --tasks --silent}
Thanks!
David