class Ember::Generators::ComponentGenerator

Public Instance Methods

create_component_files() click to toggle source
# File lib/generators/ember/component_generator.rb, line 16
def create_component_files
  dashed_file_name = file_name.dasherize
  comp_path = File.join(ember_path, 'components', class_path, "#{dashed_file_name}.#{engine_extension}")
  template "component.#{engine_extension}", comp_path

  templ_path = File.join(ember_path, 'templates/components', class_path, "#{dashed_file_name}.hbs")
  template "component.template.hbs", templ_path

end