This kind of parsing should be done with classes.

    tasks = Rake.application.tasks