Module: RakeAudit::TaskPatch
- Defined in:
- lib/rake_audit/task_patch.rb
Overview
Module prepended into Rake::Task so that every executed task is routed through an ExecutionRecorder. Prepending lets us wrap #execute while still delegating to the original implementation via super.
Instance Method Summary collapse
-
#execute(args = nil) ⇒ Object
Intercept Rake task execution.
Instance Method Details
#execute(args = nil) ⇒ Object
Intercept Rake task execution.
15 16 17 |
# File 'lib/rake_audit/task_patch.rb', line 15 def execute(args = nil) ExecutionRecorder.new(task: self, args: args).record { super } end |