Class: Servitium::ServiceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/servitium/service_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



11
12
13
14
15
# File 'lib/generators/servitium/service_generator.rb', line 11

def copy_initializer_file
  template "service.rb", "app/services/#{file_name}_service.rb"
  template "context.rb", "app/services/#{file_name}_context.rb"
  template "service_test.rb", "test/services/#{file_name}_service_test.rb"
end