Sha256: 3326c0827785a839cb819bda22c1359f0cab59fdcc7e41588949520c1871b697

Contents?: true

Size: 939 Bytes

Versions: 25

Compression:

Stored size: 939 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Config
    # The base of the Common Configuration settings.
    class RootConfiguration < BaseConfiguration
      KEYS = {
          enable: BaseConfiguration::EMPTY_VALUE,
          agent: Contrast::Config::AgentConfiguration,
          application: Contrast::Config::ApplicationConfiguration,
          server: Contrast::Config::ServerConfiguration,
          assess: Contrast::Config::AssessConfiguration,
          inventory: Contrast::Config::InventoryConfiguration,
          protect: Contrast::Config::ProtectConfiguration,
          service: Contrast::Config::ServiceConfiguration
      }.cs__freeze

      def initialize hsh = {}
        raise ArgumentError, 'Expected a hash' unless hsh.is_a?(Hash)

        super(hsh, KEYS)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/config/root_configuration.rb
contrast-agent-4.4.0 lib/contrast/config/root_configuration.rb
contrast-agent-4.3.2 lib/contrast/config/root_configuration.rb
contrast-agent-4.3.1 lib/contrast/config/root_configuration.rb
contrast-agent-4.3.0 lib/contrast/config/root_configuration.rb
contrast-agent-4.2.0 lib/contrast/config/root_configuration.rb
contrast-agent-4.1.0 lib/contrast/config/root_configuration.rb
contrast-agent-4.0.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.16.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.15.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.14.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.13.2 lib/contrast/config/root_configuration.rb
contrast-agent-3.13.1 lib/contrast/config/root_configuration.rb
contrast-agent-3.13.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.12.2 lib/contrast/config/root_configuration.rb
contrast-agent-3.12.1 lib/contrast/config/root_configuration.rb
contrast-agent-3.12.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.11.0 lib/contrast/config/root_configuration.rb
contrast-agent-3.10.2 lib/contrast/config/root_configuration.rb
contrast-agent-3.10.1 lib/contrast/config/root_configuration.rb