class
AzuCLI::Config
- AzuCLI::Config
- Reference
- Object
Overview
Configuration management system for Azu CLI Supports environment-aware configuration with sensible defaults
Defined in:
azu_cli/config.crConstant Summary
-
DEFAULT_CONFIG_PATHS =
["./config/azu.yml", "./azu.yml", "~/.config/azu/config.yml", "~/.azu.yml"] -
Default configuration file paths (searched in order)
-
EXIT_FAILURE =
1 -
EXIT_INVALID_USAGE =
2 -
EXIT_NOT_FOUND =
3 -
EXIT_SUCCESS =
0 -
Exit codes for consistent CLI behavior
-
INSTANCE =
new
Class Method Summary
-
.build_path(*segments : String) : String
Build path from segments
-
.generate_sample_config(path : String = "./azu.yml")
Generate sample configuration file
- .instance
- .load!(config_path : String | Nil = nil)
Instance Method Summary
- #colored_output=(colored_output : Bool)
- #colored_output? : Bool
- #config_file_path : String | Nil
- #config_file_path=(config_file_path : String | Nil)
- #database_adapter : String
- #database_adapter=(database_adapter : String)
- #database_host : String
- #database_host=(database_host : String)
- #database_name : String | Nil
- #database_name=(database_name : String | Nil)
- #database_password : String
- #database_password=(database_password : String)
- #database_port : Int32
- #database_port=(database_port : Int32)
-
#database_url : String | Nil
Database configuration
-
#database_url=(database_url : String | Nil)
Database configuration
- #database_user : String
- #database_user=(database_user : String)
-
#debug_mode : Bool
Global configuration
-
#debug_mode=(debug_mode : Bool)
Global configuration
-
#dev_server_host : String
Development server configuration
-
#dev_server_host=(dev_server_host : String)
Development server configuration
- #dev_server_port : Int32
- #dev_server_port=(dev_server_port : Int32)
- #dev_server_rebuild=(dev_server_rebuild : Bool)
- #dev_server_rebuild? : Bool
- #dev_server_watch=(dev_server_watch : Bool)
- #dev_server_watch? : Bool
-
#development?
Check if running in development environment
- #environment : String
- #environment=(environment : String)
-
#full_database_url : String
Get full database URL
- #load!(config_path : String | Nil = nil)
- #log_format : String
- #log_format=(log_format : String)
-
#log_level : Log::Severity
Logging configuration
-
#log_level=(log_level : Log::Severity)
Logging configuration
- #output_path : String
- #output_path=(output_path : String)
-
#production?
Check if running in production environment
-
#project_name : String
Project configuration
-
#project_name=(project_name : String)
Project configuration
- #project_path : String
- #project_path=(project_path : String)
- #quiet : Bool
- #quiet=(quiet : Bool)
-
#show_help_on_empty=(show_help_on_empty : Bool)
CLI configuration
-
#show_help_on_empty? : Bool
CLI configuration
- #template_engine : String
- #template_engine=(template_engine : String)
-
#templates_path : String
File system configuration
-
#templates_path=(templates_path : String)
File system configuration
-
#test?
Check if running in test environment
-
#test_watch_patterns : Array(String)
Get file watch patterns for test runner
-
#validate!
Validate configuration
- #verbose : Bool
- #verbose=(verbose : Bool)
-
#watch_patterns : Array(String)
Get file watch patterns for development server