One can make rake display all available tasks with rake -T or rake --tasks. But is it possible to either trace those tasks to their source without grepping around or better still, to make rake display the task source for you?
One can make rake display all available tasks with rake -T or rake –tasks
Share
As I was typing this, I noticed that
rake --helpgives two options with identical descriptions:It turns out that
rake -W <task>does output the location of the task source, although it sort of looks like it is culled from a stack trace.This answers the first question. Does anyone know if it’s possible to print the task source directly from the command line?