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

included

Class Method Details

.get_option(option) ⇒ Object



25
26
27
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 25

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

.patchObject



20
21
22
23
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 20

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

.target_versionObject



16
17
18
# File 'lib/ddtrace/contrib/rake/patcher.rb', line 16

def target_version
  Integration.version
end