---------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. -- Posted via http://www.ruby-forum.com/. --000325558e16dbb794047d47993a Content-Type: text/plain; charset=ISO-8859-1 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --000325558e16dbb794047d47993a--
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 Kiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> ---------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. > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >-- Bruno Grasselli Blog: http://brunograsselli.com.br Twitter: http://twitter.com/grasselli -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Kiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>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 -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Try to execute "rake purchaseAlcohol" from here: D:/NetBeansProjects/RubyCode 2010/1/16 Aashish Kiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> 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 Kiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > > 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 > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >-- Bruno Grasselli Blog: http://brunograsselli.com.br Twitter: http://twitter.com/grasselli -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bruno Grasselli wrote:> Try to execute "rake purchaseAlcohol" from here: > > D:/NetBeansProjects/RubyCode > > 2010/1/16 Aashish Kiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>same error as before -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.