Class: Lotus::Commands::New::Container
- Defined in:
- lib/lotus/commands/new/container.rb
Overview
Constant Summary collapse
- DEFAULT_APPLICATION_NAME =
'web'.freeze
Constants inherited from Abstract
Abstract::DEFAULT_APPLICATION_BASE_URL, Abstract::DEFAULT_ARCHITECTURE
Instance Attribute Summary
Attributes inherited from Abstract
#database_config, #options, #target_path
Instance Method Summary collapse
Methods inherited from Abstract
Methods included from Generators::Generatable
#add_mapping, #destroy, #generator, #process_templates, #start, #target_path
Constructor Details
This class inherits a constructor from Lotus::Commands::New::Abstract
Instance Method Details
#map_templates ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/lotus/commands/new/container.rb', line 11 def map_templates add_application_templates add_empty_directories add_test_templates add_sql_templates add_git_templates end |
#post_process_templates ⇒ Object
30 31 32 33 |
# File 'lib/lotus/commands/new/container.rb', line 30 def post_process_templates init_git generate_app end |
#template_options ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/lotus/commands/new/container.rb', line 19 def { app_name: app_name, lotus_head: lotus_head?, test: test_framework.framework, database: database_config.type, database_config: database_config.to_hash, lotus_model_version: lotus_model_version, } end |