class Runcobo::Tasks::Config

Overview

Development configuration is separate from application runtime configuration.

Included Modules

Defined in:

tasks/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.load(root : Path) : self #

[View source]
def self.new(root : Path, name : String, database_prefix : String, database_user : String | Nil = nil, database_port : Int32 | Nil = nil, migration_directory : String = "db/migrations", generator_config : String = "sqlc.yaml", generator_inputs : Array(String) = ["db/migrations", "db/queries"], generator_binary : String = "bin/crsql", generated_directory : String = "src/persistence/generated", snapshot_path : String = "db/schema.snapshot.sql", secret_environment : String | Nil = nil, seed_command : Array(String) = [] of String, development_environment : Hash(String, String) = {} of String => String, public_base_environment : String | Nil = nil, application_entry : String | Nil = nil, tasks : Hash(String, ProjectTask) = {} of String => ProjectTask) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def application_entry : String | Nil #

[View source]
def database_port : Int32 | Nil #

[View source]
def database_prefix : String #

[View source]
def database_user : String | Nil #

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

[View source]
def engine : Engine #

[View source]
def engine? : Engine | Nil #

The engine from sqlc.yaml, or nil when the project has no sqlc configuration (no database).


[View source]
def generated_directory : String #

[View source]
def generator_binary : String #

[View source]
def generator_config : String #

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

[View source]
def migration_directory : String #

[View source]
def name : String #

[View source]
def public_base_environment : String | Nil #

[View source]
def root : Path #

[View source]
def root=(root : Path) #

[View source]
def secret_environment : String | Nil #

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

[View source]
def snapshot_path : String #

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

[View source]