Class: Anvil::AppGenerator
- Inherits:
-
Object
- Object
- Anvil::AppGenerator
- Defined in:
- lib/generators/anvil_app.rb
Class Method Summary collapse
Class Method Details
.run(path) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/anvil_app.rb', line 6 def self.run(path) require 'rubygems' require 'rubigen' require 'rubigen/scripts/generate' source = RubiGen::PathSource.new(:application, File.join(File.dirname(__FILE__), "../../app_generators")) RubiGen::Base.reset_sources RubiGen::Base.append_sources source #RubiGem::Base.use_application_sources! RubiGen::Scripts::Generate.new.run([path], :generator => 'anvil', :backtrace => true) end |