Hi,
does anyone know how one can reference the task being executed and get
its name in the Rakefile. For example, I want this:


puts "You chose the task: " + taskname

task :egg do
   puts " 1 egg "
end

task :milk do
   puts " 1 glass milk "
end


Depending on the task name, I want to do load certain time consuming
things before the task is executed.  Any ideas?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to