Module: Datadog::Contrib::Rake::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/contrib/rake/patcher.rb
Overview
Patcher enables patching of ‘rake’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.get_option(option) ⇒ Object
24 25 26 |
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 24 def get_option(option) Datadog.configuration[:rake].get_option(option) end |
.patch ⇒ Object
19 20 21 22 |
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 19 def patch # Add instrumentation patch to Rake task ::Rake::Task.send(:include, Instrumentation) end |
.target_version ⇒ Object
15 16 17 |
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 15 def target_version Integration.version end |