Class: HecksDomain::Commands::Generate
- Inherits:
-
Thor
- Object
- Thor
- HecksDomain::Commands::Generate
- Includes:
- Thor::Actions
- Defined in:
- lib/hecks/domain/commands/generate.rb
Overview
Generate a Domainfile
Constant Summary collapse
- HECKS_FILE_NAME =
'Domainfile'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
12 13 14 |
# File 'lib/hecks/domain/commands/generate.rb', line 12 def self.source_root File.dirname(__FILE__) + '/../templates' end |
Instance Method Details
#domain_from_domain_file ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/hecks/domain/commands/generate.rb', line 19 def domain_from_domain_file generate_domain_objects(domain_get) generate_domain_files(domain_get) generate_roots(domain_get) generate_operations(domain_get, ) generate_specs(domain_get, ) end |