Module: Contrast::Config::Diagnostics::CommandLine

Defined in:
lib/contrast/config/diagnostics/command_line.rb

Overview

Reads All ENV variables.

Class Method Summary collapse

Class Method Details

.command_line_settingsObject



14
15
16
17
18
19
# File 'lib/contrast/config/diagnostics/command_line.rb', line 14

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