class DockerProjectManager::Init

Defined in:

commands/init.cr

Constant Summary

PROJECT_HOST_PATH_REGEXP = /{{\s*project_host_path\s*}}/
PROJECT_NAME_REGEXP = /{{\s*project_name\s*}}/
TEMPLATE_DIR = "/app/templates"

Instance Method Summary

Constructor methods inherited from class DockerProjectManager::Command

new(name : String, args : Array(String)) new

Class methods inherited from class DockerProjectManager::Command

command(command_name) : self.class command, commands : Hash(String, Command.class) commands, run(args) run

Instance Method Detail

def process_template(file : File) : Nil #

Hopefully Crystal gets Path, so we don't have to use this ugly class methods API such as File.basename.

https://github.com/crystal-lang/crystal/issues/5550


[View source]
def project_host_path : String #

[View source]
def project_name : String #

[View source]
def run : Nil #

[View source]
def usage : String #

[View source]
def validate : Nil #

[View source]