Sha256: a6547183de216430d0aa3c29e78b73a5133c2f3ec3665dabef7332f06b11b6b5

Contents?: true

Size: 908 Bytes

Versions: 4

Compression:

Stored size: 908 Bytes

Contents

# frozen_string_literal: true

require_relative "../ext"
require_relative "../../settings"

module Datadog
  module CI
    module Contrib
      module Cucumber
        module Configuration
          # Custom settings for the Cucumber integration
          # TODO: mark as `@public_api` when GA
          class Settings < Datadog::CI::Contrib::Settings
            option :enabled do |o|
              o.type :bool
              o.env Ext::ENV_ENABLED
              o.default true
            end

            option :service_name do |o|
              o.type :string
              o.default { Datadog.configuration.service_without_fallback || Ext::SERVICE_NAME }
            end

            option :operation_name do |o|
              o.type :string
              o.env Ext::ENV_OPERATION_NAME
              o.default Ext::OPERATION_NAME
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog-ci-0.4.1 lib/datadog/ci/contrib/cucumber/configuration/settings.rb
datadog-ci-0.4.0 lib/datadog/ci/contrib/cucumber/configuration/settings.rb
datadog-ci-0.3.0 lib/datadog/ci/contrib/cucumber/configuration/settings.rb
datadog-ci-0.2.0 lib/datadog/ci/contrib/cucumber/configuration/settings.rb