Hi there, as sad as it seems, I can''t find a hint on how to include a simple statement like rake db:sessions:create rake db:migrate in the rakefile of a plugin that I want to write myself. Any help of of course appreciated - thanks in advance. Best, Alain M. Lafon -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alain m. Lafon wrote:> as sad as it seems, I can''t find a hint on how to include a simple > statement like > rake db:sessions:create > rake db:migrate > in the rakefile of a plugin that I want to write myself.You can invoke rake tasks with Rake::Task[''task:name''].invoke. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
August Lilleaas wrote:> Alain m. Lafon wrote: >> as sad as it seems, I can''t find a hint on how to include a simple >> statement like >> rake db:sessions:create >> rake db:migrate >> in the rakefile of a plugin that I want to write myself. > > You can invoke rake tasks with Rake::Task[''task:name''].invoke.Thank you very much, this works nicely - now I have the option to call my own rake task. But is it possible to include this task in say the generator of the plugin so that it may be called on installation of the plugin? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---