[Rubygems-developers] Adding Tasks to Rake from a Gem?

Anthony Eden anthonyeden at gmail.com
Tue Dec 19 17:50:02 EST 2006

Is it possible to add tasks to Rake at runtime from a Gem? Right now I
can include the following in Ruby code to get make the library

require_gem 'activewarehouse'
require 'active_warehouse'

However this will not expose my custom tasks to Rake (they are
currently defined in tasks/*.rake). Any thoughts on how I can cleanly
get my Rake tasks added on the fly? I am currently using Rake 0.7.1.
Thanks for any help on this.


Cell: 808 782-5046
Current Location: Melbourne, FL

More information about the Rubygems-developers mailing list