[Rant-cafe] Including one rantfile from another

Mark Watson watsonmw at gmail.com
Sun Aug 12 16:01:41 EDT 2007


Hi all,

Is there a way to include a rantfile from another rantfile?  I want to
store some common settings/tasks in one file and share it amoung
several projects.

I'm currently using Ruby's require method to source the other
rantfile, but the Rant context is not set so Rant statements look like
this:

Rant.rant.task :my_task do
    Rant.rant.sys "foo"
end

Thanks!
Mark


More information about the Rant-cafe mailing list