Class: Datadog::CI::Contrib::Ciqueue::Integration

Inherits:
Integration
  • Object
show all
Defined in:
lib/datadog/ci/contrib/ciqueue/integration.rb

Overview

ci-queue test runner instrumentation github.com/Shopify/ci-queue

Constant Summary collapse

MINIMUM_VERSION =
Gem::Version.new("0.9.0")

Instance Method Summary collapse

Methods inherited from Integration

#available?, #configuration, #configure, #dependants, #enabled, inherited, #late_instrument?, #new_configuration, #patchable?, #patched?

Instance Method Details

#compatible?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/datadog/ci/contrib/ciqueue/integration.rb', line 23

def compatible?
  super && version >= MINIMUM_VERSION
end

#loaded?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/datadog/ci/contrib/ciqueue/integration.rb', line 19

def loaded?
  !defined?(::RSpec::Queue::Runner).nil?
end

#patcherObject



27
28
29
# File 'lib/datadog/ci/contrib/ciqueue/integration.rb', line 27

def patcher
  Patcher
end

#versionObject



15
16
17
# File 'lib/datadog/ci/contrib/ciqueue/integration.rb', line 15

def version
  Gem.loaded_specs["ci-queue"]&.version
end