Wins Lin
2013-May-26 18:47 UTC
No rake db:test:* commands in my Rails rake. Where may I find all missing rake commands?
In Rails Guides (http://guides.rubyonrails.org/testing.html#preparing-your-application-for-testing) they mention some "rake db:test:load" command and other "rake db:test:*" commands. But when I do "rake -D db" or "rake -T" there is no any "rake db:test" in the output. It makes me think that there are dozens of rake commands that are not distributed when I do "rake -T" (Display the tasks (matching optional PATTERN) with descriptions) or "rake -D task" (Describe the tasks (matching optional PATTERN) with descriptions). Is there one special place where ALL Rails rake commands are presented with full explanation for them? Some Rake API? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1d1039a78b2de9bfbdf99bf4c9a91eb4%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
mike
2013-May-26 20:47 UTC
Re: No rake db:test:* commands in my Rails rake. Where may I find all missing rake commands?
On Sunday, May 26, 2013 2:47:38 PM UTC-4, Ruby-Forum.com User wrote:> > In Rails Guides > ( > http://guides.rubyonrails.org/testing.html#preparing-your-application-for-testing) > > they mention some "rake db:test:load" command and other "rake db:test:*" > commands. But when I do "rake -D db" or "rake -T" there is no any "rake > db:test" in the output. > > It makes me think that there are dozens of rake commands that are not > distributed when I do "rake -T" (Display the tasks (matching optional > PATTERN) with descriptions) or "rake -D task" (Describe the tasks > (matching optional PATTERN) with descriptions). > > Is there one special place where ALL Rails rake commands are presented > with full explanation for them? Some Rake API? > > -- > Posted via http://www.ruby-forum.com/. >not that I know of. the issue with trying to document such a list is that rake isn''t an API, it''s a general utility for automating tasks. rake tasks can be defined and created by gems, you can also create your own. Therefore, it would be difficult to document them all in one place, they''re usually documented with the functionality they support. For example, the edge guide on migrations documents rake tasks related to migrations. There is an overview of the rake commands and the various categories of tasks that are provided in the default rails bundle at the following: http://edgeguides.rubyonrails.org/command_line.html#rake -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/05372e39-40ea-4f3b-805d-2a904669c6c2%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.