Sha256: 320aeb7c7028b98bf75bd4cfcb79af2bd6a24dc6a73790b55c469a719c13e462

Contents?: true

Size: 798 Bytes

Versions: 7

Compression:

Stored size: 798 Bytes

Contents

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

require 'contrast/config/diagnostics/effective_config_value'
require 'contrast/config/diagnostics/tools'
require 'contrast/utils/object_share'

module Contrast
  module Config
    module Diagnostics
      # Reads All ENV variables.
      module CommandLine
        class << self
          def command_line_settings
            cli = Contrast::Config::Diagnostics::Tools.flatten_settings(Contrast::CONFIG.sources.
              for(Contrast::Components::Config::Sources::COMMAND_LINE), cli: true)

            Contrast::Config::Diagnostics::Tools.to_config_values(cli, source: true, cli: true)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.6.0 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.5.0 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.4.1 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.4.0 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.3.2 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.3.1 lib/contrast/config/diagnostics/command_line.rb