Class: Lesli::Generators::ServiceGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/generators/lesli/service/service_generator.rb

Overview

Generates a Lesli-style service object inside the current engine.

Instance Method Summary collapse

Instance Method Details

#create_service_fileObject

Creates the service file from the template.



15
16
17
# File 'lib/generators/lesli/service/service_generator.rb', line 15

def create_service_file
    template "service.rb.tt", service_file_path
end