class

AzuCLI::Config

Inherits Reference < Object

Configuration management system for Azu CLI Supports environment-aware configuration with sensible defaults

Constants

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 methods

build_path(*segments : String) : String

Build path from segments

Source
generate_sample_config(path : String = "./azu.yml")

Generate sample configuration file

Source
instance
Source
load!(config_path : String | Nil = nil)
Source

Instance methods

colored_output=(colored_output : Bool)
Source
colored_output?
Source
config_file_path
Source
config_file_path=(config_file_path : String | Nil)
Source
database_adapter
Source
database_adapter=(database_adapter : String)
Source
database_host
Source
database_host=(database_host : String)
Source
database_name
Source
database_name=(database_name : String | Nil)
Source
database_password
Source
database_password=(database_password : String)
Source
database_port
Source
database_port=(database_port : Int32)
Source
database_url

Database configuration

Source
database_url=(database_url : String | Nil)

Database configuration

Source
database_user
Source
database_user=(database_user : String)
Source
debug_mode

Global configuration

Source
debug_mode=(debug_mode : Bool)

Global configuration

Source
dev_server_host

Development server configuration

Source
dev_server_host=(dev_server_host : String)

Development server configuration

Source
dev_server_port
Source
dev_server_port=(dev_server_port : Int32)
Source
dev_server_rebuild=(dev_server_rebuild : Bool)
Source
dev_server_rebuild?
Source
dev_server_watch=(dev_server_watch : Bool)
Source
dev_server_watch?
Source
development?

Check if running in development environment

Source
environment
Source
environment=(environment : String)
Source
full_database_url

Get full database URL

Source
load!(config_path : String | Nil = nil)
Source
log_format
Source
log_format=(log_format : String)
Source
log_level

Logging configuration

Source
log_level=(log_level : Log::Severity)

Logging configuration

Source
output_path
Source
output_path=(output_path : String)
Source
production?

Check if running in production environment

Source
project_name

Project configuration

Source
project_name=(project_name : String)

Project configuration

Source
project_path
Source
project_path=(project_path : String)
Source
quiet
Source
quiet=(quiet : Bool)
Source
show_help_on_empty=(show_help_on_empty : Bool)

CLI configuration

Source
show_help_on_empty?

CLI configuration

Source
template_engine
Source
template_engine=(template_engine : String)
Source
templates_path

File system configuration

Source
templates_path=(templates_path : String)

File system configuration

Source
test?

Check if running in test environment

Source
test_watch_patterns

Get file watch patterns for test runner

Source
validate!

Validate configuration

Source
verbose
Source
verbose=(verbose : Bool)
Source
watch_patterns

Get file watch patterns for development server

Source

Nested types