Class: Service::Generators::ServiceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Service::Generators::ServiceGenerator
- Defined in:
- lib/generators/service/service_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_commands ⇒ Object
30 31 32 |
# File 'lib/generators/service/service_generator.rb', line 30 def generate_commands invoke Service::Generators::CommandGenerator, [name, usecases] end |
#generate_usecases ⇒ Object
26 27 28 |
# File 'lib/generators/service/service_generator.rb', line 26 def generate_usecases invoke Service::Generators::UsecaseGenerator, [name, usecases] end |
#install_if_not ⇒ Object
16 17 18 19 20 |
# File 'lib/generators/service/service_generator.rb', line 16 def install_if_not return if File.exist?('app/services') generate 'service:install' end |
#setup ⇒ Object
22 23 24 |
# File 'lib/generators/service/service_generator.rb', line 22 def setup invoke Service::Generators::SetupGenerator, [name] end |