How to run rake tasks from console
- Rails.application.load_tasks
- Rake::Task['my_task'].invoke
Side notes:
You could use Rake::Task.task
to show all the tasks in the console
Ref:
- Use caller,
caller.select {|line| line.include? "archie" }
orcaller.select {|x| x["archie"] }
Try exception handling, like wtf