Sha256: b5d9468243210291fc867741cb4c83a593e4d44c2cbfa329d4bf69cd04f8455a

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

class Generator
  attr_accessor :app, :opts

  def initialize(app, opts = { })
    @app = app
    @opts = opts
  end

  def Generator.generate_all(opts = { })
    self.subclasses.each do |str|
      str.constantize.new(app, opts.merge(:prefix => true)).generate
    end
  end
  # TODO: put the 'goaloc string'-the stuff to feed to goaloc needed to regenerate the app.
  # TODO: move a lot of the duplicated stuff from rails/merb into here.
  #   then the various generators just have to provide appropriate templates.

  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mattknox-goaloc-0.2.10 lib/goaloc/generators/generator.rb
mattknox-goaloc-0.2.9 lib/goaloc/generators/generator.rb