I want to invoke my rake task from console. Is it doable? if yes, how to do so?
I tried this on console:
require \
The easiest way to do it is to run %x[command] from the irb. I'm not sure if what you want to achieve though.
%x[rake db:migrate]
EDIT: I highly recommend to use .invoke as Daniel says in the accepted answer.
.invoke