Sha256: 63eff1a6d708987cb7e8518eb14a5699bde918aa5cf5857e6b10ff175c3b5ef2

Contents?: true

Size: 664 Bytes

Versions: 28

Compression:

Stored size: 664 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/ext/app_types'
require 'ddtrace/contrib/rake/ext'
require 'ddtrace/contrib/rake/instrumentation'

module Datadog
  module Contrib
    module Rake
      # Patcher enables patching of 'rake' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

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

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

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
ddtrace-0.34.0 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.33.1 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.33.0 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.32.0 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.31.1 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.31.0 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.30.1 lib/ddtrace/contrib/rake/patcher.rb
ddtrace-0.30.0 lib/ddtrace/contrib/rake/patcher.rb