class
DocMachine::Config
- DocMachine::Config
- Reference
- Object
Overview
Global configuration holds shared runtime settings across commands. It centralizes validation and ensures consistent access patterns.
Direct Known Subclasses
- DocMachine::Build::Config
- DocMachine::Container::Config
- DocMachine::Plan::Config
- DocMachine::Scaffold::Config
- DocMachine::Write::Config
Defined in:
config.crConstructors
Instance Method Summary
-
#cache_policy : DocMachine::Cache::Policy
Cache policy is immutable and only available after validation.
-
#cache_root : Path
Cache root is immutable and only available after validation.
-
#validate! : Nil
Validation resolves cache root once and builds the cache policy.
- #verbosity : Log::Severity
- #verbosity=(verbosity : ::Log::Severity)
Constructor Detail
Instance Method Detail
def cache_policy : DocMachine::Cache::Policy
#
Cache policy is immutable and only available after validation. Accessing it early fails fast with an actionable error.
def cache_root : Path
#
Cache root is immutable and only available after validation. Accessing it early fails fast with an actionable error.
def validate! : Nil
#
Validation resolves cache root once and builds the cache policy. This keeps failure explicit while deferring side effects until CLI parsing completes.