Sha256: 8bab9adb7990ea4ad96f98afc8c0d2974eaf1eb611484180a4c9eb453cc9848f

Contents?: true

Size: 463 Bytes

Versions: 50

Compression:

Stored size: 463 Bytes

Contents

require 'ddtrace/configuration/dependency_resolver'

module Datadog
  module Configuration
    # Represents a set of configuration option definitions for an integration
    class OptionDefinitionSet < Hash
      def dependency_order
        DependencyResolver.new(dependency_graph).call
      end

      def dependency_graph
        each_with_object({}) do |(name, option), graph|
          graph[name] = option.depends_on
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.51.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.50.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.49.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.48.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.47.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.46.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.45.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.44.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.43.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.42.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.41.0 lib/ddtrace/configuration/option_definition_set.rb
ls-trace-0.2.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.40.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.39.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.38.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.37.0 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.36.0 lib/ddtrace/configuration/option_definition_set.rb
ls-trace-0.1.2 lib/ddtrace/configuration/option_definition_set.rb
ddtrace-0.35.2 lib/ddtrace/configuration/option_definition_set.rb