Sha256: 9890029de5f4798316bfa5c6328bc580792823af23e0b18325ac06b1617b582c

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

require 'fileutils'
require 'find'

module Merb
  
  class AppGenerator    
    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
      RubiGen::Scripts::Generate.new.run([path], :generator => 'merb', :backtrace => true)
    end  

  end
        
end  

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merb-0.4.1 lib/merb/generators/merb_app/merb_app.rb
merb-0.4.2 lib/merb/generators/merb_app/merb_app.rb
merb-0.5.0 lib/merb/generators/merb_app/merb_app.rb
merb-0.5.1 lib/merb/generators/merb_app/merb_app.rb
merb-0.5.2 lib/merb/generators/merb_app/merb_app.rb
merb-0.5.3 lib/merb/generators/merb_app/merb_app.rb