Class: HecksDomain::Commands::Generate

Inherits:
Thor
  • Object
show all
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_rootObject



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_fileObject



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, options)
  generate_specs(domain_get, options)
end