class EmberGen::Generate

Constants

TEMPLATE_PATH

todo - need to figure out a way to read users preferences for

javascript engine and dependency management (AMD, common.js, ES6 module, global)
then the correct template can be loaded.
There are two likely places I can think that it would be good to load these files.
  1. config/environments/development.rb
  2. from an ember-gen specific configuration file 
     I don't really like this approach, as much be it is more agnostic

Public Class Methods

new(type) click to toggle source
# File lib/ember-gen/generate.rb, line 14
def initialize(type)
  @type = type
  load_template
end

Public Instance Methods

print_template() click to toggle source

Private Instance Methods

load_template() click to toggle source
# File lib/ember-gen/generate.rb, line 25
def load_template
  @template_file = File.read File.join(TEMPLATE_PATH, "#{@type}_test.coffee.erb")
end