class

AzuCLI::Generate::Project

Inherits Teeplate::FileTree < Reference < Object

Project generator that creates a new Azu project from templates

Constants

OUTPUT_DIR = "./"

Constructors

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")
Source

Instance methods

____collect_files(____files)

:nodoc:

Source
__ecr1(____io)
Source
__ecr10(____io)
Source
__ecr12(____io)
Source
__ecr14(____io)
Source
__ecr16(____io)
Source
__ecr18(____io)
Source
__ecr29(____io)
Source
__ecr31(____io)
Source
__ecr33(____io)
Source
__ecr35(____io)
Source
__ecr38(____io)
Source
__ecr40(____io)
Source
__ecr44(____io)
Source
__ecr46(____io)
Source
__ecr48(____io)
Source
__ecr50(____io)
Source
__ecr52(____io)
Source
__ecr54(____io)
Source
__ecr56(____io)
Source
__ecr6(____io)
Source
__ecr60(____io)
Source
__ecr62(____io)
Source
__ecr64(____io)
Source
__ecr66(____io)
Source
__ecr69(____io)
Source
__ecr72(____io)
Source
__ecr76(____io)
Source
__ecr78(____io)
Source
__ecr8(____io)
Source
api_project?

Check if it's an API project type

Source
author
Source
author=(author : String)
Source
binary_name

Get the binary name for targets

Source
ci_filename

Get CI workflow filename

Source
ci_setup
Source
ci_setup=(ci_setup : String)
Source
cli_project?

Check if it's a CLI project type

Source
cql_adapter_class

Get CQL adapter class name based on database choice

Source
database
Source
database=(database : String)
Source
database_adapter

Get database adapter name for dependencies

Source
database_adapter_uri_prefix
Source
database_dependency

Get database dependency for shard.yml

Source
database_env_url
Source
docker_support
Source
docker_support=(docker_support : Bool)
Source
email
Source
email=(email : String)
Source
env=(env : String)
Source
example_component

Get example endpoint or component based on project type

Source
filter(entries)

Override filter method to conditionally exclude files based on project type

Source
git_init
Source
git_init=(git_init : Bool)
Source
github_name
Source
github_name=(github_name : String)
Source
has_ci?

Check if project should include CI configuration

Source
has_joobq?

Check if JoobQ should be included

Source
include_example
Source
include_example=(include_example : Bool)
Source
include_joobq
Source
include_joobq=(include_joobq : Bool)
Source
license
Source
license=(license : String)
Source
main_file

Get the main file extension based on project type

Source
module_name
Source
module_name=(module_name : String)
Source
project

Project configuration properties

Source
project=(project : String)

Project configuration properties

Source
project_type
Source
project_type=(project_type : String)
Source
schema_name

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

Source
schema_symbol

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

Source
test_dependency

Get test framework dependency

Source
test_framework
Source
test_framework=(test_framework : String)
Source
web_project?

Check if it's a web project type

Source