Find Where a Rake Task is Defined

Posted . Visible to the public.

You can use rake --where task to find the source location that defines task:

bundle exec rake --where assets:precompile
rake assets:precompile              /home/henning/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/precompiled_assets-0.2.1/lib/precompiled_assets/tasks/assets.rake:5:in `block in <main>'
Profile picture of Henning Koch
Henning Koch
Last edit
Niklas Hasselmeyer
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2023-07-21 07:43)