class

JoobQ::YamlConfigLoader

Inherits Reference / Object

YAML configuration loader for JoobQ

Constants

DEFAULT_SEARCH_PATHS = ["./joobq.yml", "./config/joobq.yml", "./config/joobq.yaml", "./joobq.yaml", ENV["JOOBQ_CONFIG_PATH"]?, ENV["JOOBQ_CONFIG_FILE"]?, "~/.joobq/joobq.yml", "/etc/joobq/joobq.yml"].compact

Configuration file search paths (in order of precedence)

ENV_FILE_PATTERNS = ["./config/joobq.#{ENV["JOOBQ_ENV"]? || "development"}.yml", "./config/joobq.#{ENV["RACK_ENV"]? || "development"}.yml", "./config/joobq.#{ENV["CRYSTAL_ENV"]? || "development"}.yml"]

Environment-specific file patterns

Class methods

find_config_file
Source
load_auto

Auto-discovery methods

Source
load_from_cli_args(args : Array(String)) : Configure

CLI and programmatic configuration methods

Source
load_from_file(path : String) : Configure

Main entry points

Source
load_from_sources(sources : Array(String)) : Configure

Load from multiple sources with merging

Source
load_from_string(yaml_content : String, source_path : String | Nil = nil) : Configure
Source
load_with_env_overrides(base_path : String | Nil = nil, env : String | Nil = nil) : Configure

Load with environment override support

Source