module Totem
Defined in:
totem.crtotem/any.cr
totem/config.cr
totem/config_builder.cr
totem/config_types.cr
totem/exception.cr
totem/remote_providers.cr
totem/utils.cr
totem/version.cr
Constant Summary
-
VERSION =
"0.7.0"
Constructors
Class Method Summary
- .from_env(raw : String, key_delimiter : String = Config::KEY_DELIMITER)
- .from_file(file : String, paths : Array(String) | Nil = nil, environment : String | Nil = nil, key_delimiter : String = Config::KEY_DELIMITER)
- .from_json(raw : String, key_delimiter : String = Config::KEY_DELIMITER)
- .from_yaml(raw : String, key_delimiter : String = Config::KEY_DELIMITER)
- .parse(raw : String, config_type : String, key_delimiter : String = Config::KEY_DELIMITER)
Constructor Detail
def self.new(config_name = "config", config_type : String | Nil = nil, config_paths : Array(String) = [] of String, config_env : String | Nil = nil, config_envs = Config::CONFIG_ENVS, key_delimiter : String | Nil = Config::KEY_DELIMITER)
#
Class Method Detail
def self.from_file(file : String, paths : Array(String) | Nil = nil, environment : String | Nil = nil, key_delimiter : String = Config::KEY_DELIMITER)
#
def self.parse(raw : String, config_type : String, key_delimiter : String = Config::KEY_DELIMITER)
#