logo       

Adding Tasks to Rake from a Gem?: msg#00044

lang.ruby.gems.devel

Subject: Adding Tasks to Rake from a Gem?

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
available:

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.

V/r
Anthony

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise