This turns out to be pretty straight forward, but was not obvious
A rake task to rebuild the development database
Resources
All of the code samples have now been consolidated and moved to my blog at http://house9.blogspot.com/. Many google searches still point here so I am leaving this blog operational.
Subscribe to:
Post Comments (Atom)
Custom Search
2 comments:
Awesome! Thanks!
Also if the task you are calling takes args you can pass them in a hash to the execute method
some_value = "testing"
Rake::Task["your_task"].execute({:some_param => some_value})
read more about rake args
http://dev.nuclearrooster.com/2009/01/05/rake-task-with-arguments/
Post a Comment