Last Updated: February 25, 2016
·
1.173K
· x3ro

Enabling Rake/Capistrano task tracing from within Ruby

We're using Capistrano for deployment, and Capistrano v3 does not display the names of the tasks being executed, which v2 did. It is possible to see the task by passing the -t parameter for every deployment, but you can also permanently enable tracing from within your Rakefile/Capfile, like this:

Rake.application.options.trace = true
Rake.application.options.backtrace = true

For all available options, check out application.rb, especially the standard_rake_options method.