class AzuCLI::Generate::Project

Overview

Project generator that creates a new Azu project from templates

Defined in:

azu_cli/generators/project.cr

Constant Summary

OUTPUT_DIR = "./"

Constructors

Instance Method Summary

Constructor Detail

def self.new(project : String, module_name : String, author : String, email : String, license : String = "MIT", project_type : String = "web", database : String = "postgresql", test_framework : String = "spec", ci_setup : String = "GitHub Actions", docker_support : Bool = false, git_init : Bool = true, include_example : Bool = true, include_joobq : Bool = true, env : String = "development") #

[View source]

Instance Method Detail

def ____collect_files(____files) #
Description copied from class Teeplate::FileTree

:nodoc:


[View source]
def __ecr1(____io) #

[View source]
def __ecr11(____io) #

[View source]
def __ecr13(____io) #

[View source]
def __ecr15(____io) #

[View source]
def __ecr17(____io) #

[View source]
def __ecr19(____io) #

[View source]
def __ecr21(____io) #

[View source]
def __ecr28(____io) #

[View source]
def __ecr35(____io) #

[View source]
def __ecr37(____io) #

[View source]
def __ecr39(____io) #

[View source]
def __ecr4(____io) #

[View source]
def __ecr41(____io) #

[View source]
def __ecr43(____io) #

[View source]
def __ecr50(____io) #

[View source]
def __ecr52(____io) #

[View source]
def __ecr54(____io) #

[View source]
def __ecr56(____io) #

[View source]
def __ecr58(____io) #

[View source]
def __ecr6(____io) #

[View source]
def __ecr60(____io) #

[View source]
def __ecr62(____io) #

[View source]
def __ecr64(____io) #

[View source]
def __ecr68(____io) #

[View source]
def __ecr71(____io) #

[View source]
def __ecr73(____io) #

[View source]
def __ecr75(____io) #

[View source]
def __ecr77(____io) #

[View source]
def __ecr8(____io) #

[View source]
def api_project? : Bool #

Check if it's an API project type


[View source]
def author : String #

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

[View source]
def binary_name : String #

Get the binary name for targets


[View source]
def ci_filename : String #

Get CI workflow filename


[View source]
def ci_setup : String #

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

[View source]
def cli_project? : Bool #

Check if it's a CLI project type


[View source]
def database : String #

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

[View source]
def database_adapter : String #

Get database adapter name for dependencies


[View source]
def database_adapter_uri_prefix : String #

[View source]
def database_dependency : String #

Get database dependency for shard.yml


[View source]
def database_env_url : String #

[View source]
def docker_support : Bool #

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

[View source]
def email : String #

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

[View source]
def env : String #

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

[View source]
def example_component : String #

Get example endpoint or component based on project type


[View source]
def filter(entries) #

Override filter method to conditionally exclude files based on project type


[View source]
def git_init : Bool #

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

[View source]
def github_name : String #

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

[View source]
def has_ci? : Bool #

Check if project should include CI configuration


[View source]
def has_joobq? : Bool #

Check if JoobQ should be included


[View source]
def include_example : Bool #

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

[View source]
def include_joobq : Bool #

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

[View source]
def license : String #

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

[View source]
def main_file : String #

Get the main file extension based on project type


[View source]
def module_name : String #

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

[View source]
def project : String #

Project configuration properties


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

Project configuration properties


[View source]
def project_type : String #

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

[View source]
def schema_name : String #

Generate schema class name from project name Examples: "blog" → "BlogDB", "my_blog" → "MyBlogDB"


[View source]
def schema_symbol : String #

Generate schema symbol from project name Examples: "blog" → "blog_db", "my_blog" → "my_blog_db"


[View source]
def test_dependency : String #

Get test framework dependency


[View source]
def test_framework : String #

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

[View source]
def web_project? : Bool #

Check if it's a web project type


[View source]