Class: Datadog::CI::Contrib::Knapsack::Integration
- Inherits:
-
Integration
- Object
- Integration
- Datadog::CI::Contrib::Knapsack::Integration
show all
- Defined in:
- lib/datadog/ci/contrib/knapsack/integration.rb
Overview
Constant Summary
collapse
- MINIMUM_VERSION =
Gem::Version.new("7.0.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
25
26
27
|
# File 'lib/datadog/ci/contrib/knapsack/integration.rb', line 25
def compatible?
super && version >= MINIMUM_VERSION
end
|
#loaded? ⇒ Boolean
19
20
21
22
23
|
# File 'lib/datadog/ci/contrib/knapsack/integration.rb', line 19
def loaded?
!defined?(::KnapsackPro).nil? &&
!defined?(::KnapsackPro::Extensions::RSpecExtension).nil? &&
!defined?(::KnapsackPro::Extensions::RSpecExtension::Runner).nil?
end
|
#patcher ⇒ Object
29
30
31
|
# File 'lib/datadog/ci/contrib/knapsack/integration.rb', line 29
def patcher
Patcher
end
|
#version ⇒ Object
15
16
17
|
# File 'lib/datadog/ci/contrib/knapsack/integration.rb', line 15
def version
Gem.loaded_specs["knapsack_pro"]&.version
end
|