class
Runcobo::Tasks::Config
- Runcobo::Tasks::Config
- Reference
- Object
Overview
Development configuration is separate from application runtime configuration.
Included Modules
- YAML::Serializable
- YAML::Serializable::Strict
Defined in:
tasks/config.crConstructors
- .load(root : Path) : 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)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
- #application_entry : String | Nil
- #database_port : Int32 | Nil
- #database_prefix : String
- #database_user : String | Nil
- #development_environment : Hash(String, String)
- #engine : Engine
-
#engine? : Engine | Nil
The engine from sqlc.yaml, or nil when the project has no sqlc configuration (no database).
- #generated_directory : String
- #generator_binary : String
- #generator_config : String
- #generator_inputs : Array(String)
- #migration_directory : String
- #name : String
- #public_base_environment : String | Nil
- #root : Path
- #root=(root : Path)
- #secret_environment : String | Nil
- #seed_command : Array(String)
- #snapshot_path : String
- #tasks : Hash(String, ProjectTask)
Constructor Detail
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)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Instance Method Detail
The engine from sqlc.yaml, or nil when the project has no sqlc configuration (no database).