I have an existing .rake file. It used to have one task and I added one more task to the existing rake file.
But when I try to run, it throws an error:
rake aborted!
Don't know how to build task ___
abc.rake
file:
namespace abcd
namespace abcde
task pqr do
------------------
end
task mno do ( new task which I added)
---------------------
end
end
end
But when I used command: rake abcd:abcde:mno
-- it showed above error
So I used rake -T -A
, I am able to see the rake task abcd:abcde:pqr
but am unable to see the other one.
I am new to rails. Please help me out.
Thanks in advance.
Here is test code for you:
create a file abcde.rake under ../lib/tasks/abcde.rake
Then run this command
output of above command is:
Run