10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/generators/domain_gem_generator.rb', line 10
def create_domain params={}
path = params[:path]
create_file "#{path}/domain/main.rb"
@file = "require 'utter'\nDir[File.dirname(__FILE__) + '/**/*.rb'].each {|file| require_relative file }\n#TODO require all extentions in the domain/extentions dir\n#TODO require a relevant domain-specific framework\n#TODO write some domain-specific rules here thus that the \n#recievied rules{}from the microservices gets evaluated based on them. \n FOO\n append_to_file \"\#{path}/domain/main.rb\", @file\n\n #open(\"\#{path}/domain/main.rb\", 'a') do |f|\n # f.puts @file\n #end\n # end of config.ru\n ############################ \n # create domain/extensions\n #empty_directory \"\#{path}/domain/extensions\"\nend\n"
|