On 17.12.2008, at 13:38, Uri Sharf wrote:

> I can see the extra tasks from DataMapper etc, but rake still ignores
> tasks in lib/myslice/slicetasks.rb, even though they seem to be
> imported.


Rake tasks do not show up in rake -T list if they do not have  
description:

task :visible do
   ...
end

won't show up on the list while

desc "I am sure it does something"
task :visible do
   ...
end

will.

So try to load files explicitly, it is not a big deal, and keep the  
tricky moment above in mind.

Dir[Merb.root / "slice" / "lib" / "tasks" / "*.rake"].each do |path|
   STDOUT.puts "Loading #{File.basename(path)}"
   load path
end

MK


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to