Class: Service::Generators::MicroGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/service/micro/micro_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_microsObject



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