Rake aborted!

---------rakefile-------------

require ‘csv’
require ‘rake’
task :purchaseAlcohol do
puts “Purchased Vodka”
end

task :mixDrink do
puts “Mixed Fuzzy Navel”
end

task :getSmashed do
puts “Dood, everthing’s blurry, can I halff noth’r drinnnk?”
end
-----------end--------------------

when I run rake task using any of the commands

rake purchaseAlcohol
rake mixDrink
rake getSmashed

i am getting error as
rake aborted! Don’t know how to build task ‘taskname’
Can anyone please tell how to get rid of it.

Where are you keeping this file?

If you put it in somewhere like:

lib/tasks

It should work.

Try to add:

desc “some text”

Before each task and then you can look for it when you type:

rake -T

2010/1/16 Aashish K. [email protected]

Bruno Grasselli wrote:

Where are you keeping this file?

If you put it in somewhere like:

lib/tasks

It should work.

Try to add:

desc “some text”

Before each task and then you can look for it when you type:

rake -T

2010/1/16 Aashish K. [email protected]

when i execute
D:\NetBeansProjects\RubyCode\lib\tasks>rake purchaseAlcohol
(in D:/NetBeansProjects/RubyCode)
rake aborted!

(See full trace by running task with --trace)

it is searching in project folder, it is not searching in
D:/NetBeansProjects/RubyCode/lib/tasks

can you help solving this

Bruno Grasselli wrote:

Try to execute “rake purchaseAlcohol” from here:

D:/NetBeansProjects/RubyCode

2010/1/16 Aashish K. [email protected]

same error as before

Try to execute “rake purchaseAlcohol” from here:

D:/NetBeansProjects/RubyCode

2010/1/16 Aashish K. [email protected]