From: David Palm Date: 2009-05-13T20:11:59+09:00 Subject: Rake as a library/API: possible? 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 => #> 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