class
Runcobo::Tasks::ProjectInit
- Runcobo::Tasks::ProjectInit
- Reference
- Object
Overview
Turns a project created by crystal init app NAME into a Runcobo application.
Defined in:
tasks/project_init.crConstant Summary
-
DATABASES =
["postgresql", "mysql", "sqlite", "none"] of ::String -
DRIVERS =
{"postgresql" => {"pg", "will/crystal-pg", "~> 0.31.0"}, "mysql" => {"mysql", "crystal-lang/crystal-mysql", "~> 0.18.0"}, "sqlite" => {"sqlite3", "crystal-lang/crystal-sqlite3", "~> 0.24.0"}}
Constructors
Instance Method Summary
-
#crystal_init_placeholders : Array(String)
Files from
crystal init appthat are replaced only while they're unchanged. - #database? : Bool
-
#files : Hash(String, String)
Every file this command writes, with its content.
- #module_name : String
- #name : String
- #prefix : String
- #run
Constructor Detail
def self.new(root : Path, database : String = "postgresql", runner : Runcobo::Tasks::Runner = Runner.new, output : IO = STDOUT)
#
Instance Method Detail
def crystal_init_placeholders : Array(String)
#
Files from crystal init app that are replaced only while they're unchanged.