Module: Datadog::CI::Configuration::Settings
- Defined in:
- lib/datadog/ci/configuration/settings.rb
Overview
Adds CI behavior to Datadog trace settings
Class Method Summary collapse
Class Method Details
.add_settings!(base) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/datadog/ci/configuration/settings.rb', line 14 def self.add_settings!(base) base.class_eval do settings :ci_mode do option :enabled do |o| o.default { env_to_bool(Datadog::CI::Ext::Settings::ENV_MODE_ENABLED, false) } o.lazy end option :context_flush do |o| o.default { nil } o.lazy end option :writer_options do |o| o.default { {} } o.lazy end end end end |
.extended(base) ⇒ Object
9 10 11 12 |
# File 'lib/datadog/ci/configuration/settings.rb', line 9 def self.extended(base) base = base.singleton_class unless base.is_a?(Class) add_settings!(base) end |