Class: Service::Generators::MicroGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Service::Generators::MicroGenerator
- Defined in:
- lib/generators/service/micro/micro_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_micros ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/generators/service/micro/micro_generator.rb', line 11 def create_micros micros.each do |m| @micro = m.classify path = "#{service_path}/usecases/micros/#{m.underscore}.rb" template 'micro.rb.erb', path end end |