class DockerProjectManager::Init
- DockerProjectManager::Init
- DockerProjectManager::Command
- Reference
- Object
Defined in:
commands/init.crConstant Summary
-
PROJECT_HOST_PATH_REGEXP =
/{{\s*project_host_path\s*}}/
-
PROJECT_NAME_REGEXP =
/{{\s*project_name\s*}}/
-
TEMPLATE_DIR =
"/app/templates"
Instance Method Summary
-
#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.
- #project_host_path : String
- #project_name : String
- #run : Nil
- #usage : String
- #validate : Nil
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