class Spectator::Config::CLIArgumentsApplicator

Overview

Applies command-line arguments to a configuration.

Defined in:

spectator/config/cli_arguments_applicator.cr

Constant Summary

Log = Spectator::Log.for("config")

Logger for this class.

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.new(args : Array(String) = ARGV) #

Creates the configuration source. By default, the command-line arguments (ARGV) are used. But custom arguments can be passed in.


[View source]

Instance Method Detail

def apply(builder) : Nil #

Applies the specified configuration to a builder. Calling this method from multiple sources builds up the final configuration.


[View source]