Module: Datadog::Tracing::Contrib::Rake::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/rake/patcher.rb

Overview

Patcher enables patching of ‘rake’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.get_option(option) ⇒ Object



26
27
28
# File 'lib/datadog/tracing/contrib/rake/patcher.rb', line 26

def get_option(option)
  Datadog.configuration.tracing[:rake].get_option(option)
end

.patchObject



21
22
23
24
# File 'lib/datadog/tracing/contrib/rake/patcher.rb', line 21

def patch
  # Add instrumentation patch to Rake task
  ::Rake::Task.include(Instrumentation)
end

.target_versionObject



17
18
19
# File 'lib/datadog/tracing/contrib/rake/patcher.rb', line 17

def target_version
  Integration.version
end