Class: Ember::Generators::ServiceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Ember::Generators::ServiceGenerator
- Includes:
- GeneratorHelpers
- Defined in:
- lib/generators/ember/service_generator.rb
Instance Method Summary collapse
Methods included from GeneratorHelpers
#application_name, #class_name, #configuration, #ember_path, #engine_extension, #engine_name, #handlebars_template_path, #javascript_engine, #rails_engine?
Instance Method Details
#create_service_files ⇒ Object
18 19 20 21 22 |
# File 'lib/generators/ember/service_generator.rb', line 18 def create_service_files file_path = File.join(ember_path, 'services', class_path, "#{file_name.dasherize}.#{engine_extension}") template "service.#{engine_extension}", file_path end |