I have a Rakefile
with a Rake task that I would normally call from the command line:
rake blog:post Title
I\'d like to write a
This works with Rake version 10.0.3:
require 'rake'
app = Rake.application
app.init
# do this as many times as needed
app.add_import 'some/other/file.rake'
# this loads the Rakefile and other imports
app.load_rakefile
app['sometask'].invoke
As knut said, use reenable
if you want to invoke multiple times.