Module: Konfig
- Defined in:
- lib/cli.rb,
lib/konfig.rb,
lib/konfig/utils.rb,
lib/konfig/errors.rb,
lib/konfig/option.rb,
lib/konfig/version.rb,
lib/konfig/env_replacer.rb,
lib/konfig/yaml_provider.rb,
lib/konfig/config_provider.rb,
lib/konfig/provider_factory.rb,
lib/konfig/directory_provider.rb
Defined Under Namespace
Classes: CLI, Config, ConfigProvider, DirectoryProvider, EnvReplacer, Error, FileError, FileNotFound, InvalidSettingName, KeyError, NilClass, NotConfiguredError, Option, ProviderFactory, Utils, ValidationError, YamlProvider
Constant Summary
collapse
- NIL_VALUE =
NilClass.new
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
6
7
8
|
# File 'lib/konfig.rb', line 6
def self.configuration
@config ||= Konfig::Config.new
end
|
.load ⇒ Object
10
11
12
13
|
# File 'lib/konfig.rb', line 10
def self.load
provider = ProviderFactory.create_provider(mode: self.configuration.mode, workdir: self.configuration.workdir)
provider.load
end
|