class Amber::Environment::Settings

Included Modules

Defined in:

amber/environment/settings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new #

[View source]

Instance Method Detail

def app_config=(config : Amber::Configuration::AppConfig) #

Sets the backing AppConfig directly (used when loading V2 YAML).


[View source]
def auto_reload=(auto_reload : Bool) #

[View source]
def auto_reload? : Bool #

[View source]
def custom(key : Symbol, type : T.class) : T forall T #

Retrieve a registered custom configuration section by key and type.


[View source]

Returns the typed database configuration.


[View source]
def database_url : String #

[View source]
def database_url=(database_url : String) #

[View source]
def host : String #

[View source]
def host=(host : String) #

[View source]

[View source]

Returns the typed jobs configuration.


[View source]
def logging #

[View source]
def logging_config : Hash(String, String | Bool | Array(String)) #

[View source]
def logging_config=(logging_config : Hash(String, String | Bool | Array(String))) #

[View source]

Returns the typed logging configuration.


[View source]

Returns the typed mailer configuration.


[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def pipes : Hash(String, Hash(String, Hash(String, String | Int32 | Bool | Nil))) #

[View source]
def pipes=(pipes : Hash(String, Hash(String, Hash(String, String | Int32 | Bool | Nil)))) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]
def port_reuse : Bool #

[View source]
def port_reuse=(port_reuse : Bool) #

[View source]
def previous_secrets : Array(String) #

[View source]
def previous_secrets=(previous_secrets : Array(String)) #

[View source]
def process_count : Int32 #

[View source]
def process_count=(process_count : Int32) #

[View source]
def pubsub #

[View source]
def pubsub=(value : Hash(String, String)) #

Backward compatibility setter


[View source]
def pubsub_config : Hash(String, String) #

[View source]
def pubsub_config=(pubsub_config : Hash(String, String)) #

[View source]

Returns the typed pubsub configuration.


[View source]
def secret_key_base : String #

[View source]
def secret_key_base=(secret_key_base : String) #

[View source]
def secrets : Hash(String, String) #

[View source]
def secrets=(secrets : Hash(String, String)) #

[View source]

Returns the typed server configuration.


[View source]
def session #

[View source]
def session=(value : Hash(String, Int32 | String)) #

Backward compatibility setter


[View source]
def session_config : Hash(String, Int32 | String) #

[View source]
def session_config=(session_config : Hash(String, Int32 | String)) #

[View source]
def session_store #

[View source]

Returns the typed session configuration.


[View source]
def smtp : SMTPSettings #

[View source]
def smtp=(smtp : SMTPSettings) #

[View source]
def ssl_cert_file : String | Nil #

[View source]
def ssl_cert_file=(ssl_cert_file : String | Nil) #

[View source]
def ssl_key_file : String | Nil #

[View source]
def ssl_key_file=(ssl_key_file : String | Nil) #

[View source]

Returns the typed static files configuration.


[View source]
def to_app_config : Amber::Configuration::AppConfig #

Returns the full AppConfig, building it from V1 properties if needed.


[View source]