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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to