class Runcobo::Tasks::ProjectInit

Overview

Turns a project created by crystal init app NAME into a Runcobo application.

Defined in:

tasks/project_init.cr

Constant 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

Constructor Detail

def self.new(root : Path, database : String = "postgresql", runner : Runcobo::Tasks::Runner = Runner.new, output : IO = STDOUT) #

[View source]

Instance Method Detail

def crystal_init_placeholders : Array(String) #

Files from crystal init app that are replaced only while they're unchanged.


[View source]
def database? : Bool #

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

Every file this command writes, with its content.


[View source]
def module_name : String #

[View source]
def name : String #

[View source]
def prefix : String #

[View source]
def run #

[View source]