Method: Mutant::Config.load
- Defined in:
- lib/mutant/config.rb
.load(cli_config:, world:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Load the configuration
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/mutant/config.rb', line 99 def self.load(cli_config:, world:) load_config_file(reporter: cli_config.reporter, world:).bind do |file_config| load_env_config(world:).fmap do |env_config| DEFAULT.with( jobs: Etc.nprocessors, mutation: Mutation::Config::DEFAULT ).merge(file_config).merge(env_config).merge(cli_config) end end end |