Reputation: 33
I try add file random.rake to my /lib/tasks
folder but after that when i type rake -T
I don't see rake random
on the list. I try save few files but without any results.
task :greet do
puts "How are you?"
end
I have ruby 1.9.3 rails 3.2.13 rake 10.1.0
What I can do?
Upvotes: 0
Views: 1355
Reputation: 1671
You need to add some description to your task:
desc "Some description here"
task :greet do
puts "How are you?"
end
Easy way to check the presence of the task if you have many tasks:
$ rake -T | grep greet
Upvotes: 5