Sha256: cbed8099a58f02a3cd6850bb29549905c3eeba450ef5a084ec9e427f23c164f1

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

require_relative "git"

module Datadog
  module CI
    module Utils
      module Configuration
        def self.fetch_service_name(default)
          Datadog.configuration.service_without_fallback || Git.repository_name || default
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog-ci-1.0.0.beta1 lib/datadog/ci/utils/configuration.rb
datadog-ci-0.8.3 lib/datadog/ci/utils/configuration.rb
datadog-ci-0.8.2 lib/datadog/ci/utils/configuration.rb
datadog-ci-0.8.1 lib/datadog/ci/utils/configuration.rb
datadog-ci-0.8.0 lib/datadog/ci/utils/configuration.rb
datadog-ci-0.7.0 lib/datadog/ci/utils/configuration.rb