Flowdock
method

rake

Importance_1
v4.0.2 - Show latest stable - 1 note - Class: Rails::Generators::Actions
rake(command, options={}) public

Runs the supplied rake task

rake("db:migrate")
rake("db:migrate", env: "production")
rake("gems:install", sudo: true)
Show source
Register or log in to add new notes.
July 15, 2010
0 thanks

Doesn't output into STDOUT

Oddly enough it runs a rake task without any sort of output. To get around it you can simple substitute it with:

puts run('rake your_task')

Unless somebody has a better idea?