Class: Rake::Task
- Inherits:
-
Object
- Object
- Rake::Task
- Defined in:
- lib/capistrano/datadog/v3.rb
Instance Method Summary collapse
Instance Method Details
#invoke(*args) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/capistrano/datadog/v3.rb', line 15 def invoke(*args) reporter = Capistrano::Datadog.reporter event_filter = Capistrano::Configuration.env.fetch(:datadog_event_filter) if event_filter reporter.event_filter = event_filter end task_name = name stage = Capistrano::Configuration.env.fetch(:stage) application = Capistrano::Configuration.env.fetch(:application) reporter.record_task(task_name, roles, stage, application) do old_invoke(*args) end end |
#old_invoke ⇒ Object
14 |
# File 'lib/capistrano/datadog/v3.rb', line 14 alias old_invoke invoke |