rake finds & runs task, but doesn't show in --tasks list

H

Hugh J. Devlin

hi, rake & ruby-talk newbie, a boy's 1st rake task, lib/tasks/load.rake:

namespace :load do
task :hello_world do |t|
puts 'hello, world!'
end
end

runs fine:

# rake load:hello_world
(in ... )
hello, world!

but it's a no-show in rake --tasks, which just shows the standard rails
tasks

the task is not listed even when rake is pointed directly at the rake file:

# rake -f lib/tasks/load.rake --tasks
(in ... )

w/ or w/o explicit namespace in rake file doesn't help it show up in
--tasks

rake 0.8.3, rails 2.1.1, ruby 1.8, fedora 9

what am i doing wrong? thanks in advance. sorry if this is a FAQ.

Hugh
 
H

Hugh J. Devlin

thanks, Joe! that did the trick

("Only tasks with descriptions will be displayed with the "-T" switch. "
- missed that)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top