Sha256: b11cb3ed36977872bc7466d4d993aabc9260517c31b81247f4d13a161d29fc3e

Contents?: true

Size: 934 Bytes

Versions: 1

Compression:

Stored size: 934 Bytes

Contents

module Merb::Generators
  
  class MerbGenerator < ApplicationGenerator

    def self.source_root
      File.join(super, 'merb')
    end
    
    option :testing_framework, :default => :rspec, :desc => 'Testing framework to use (one of: spec, test_unit)'
    option :orm, :default => :none, :desc => 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
    option :flat, :as => :boolean, :desc => "Generate a flat application: one file + configs + templates directory."
    option :very_flat, :as => :boolean, :desc => "Generate a very flat, Sinatra-like one file application."
    
    desc <<-DESC
      Generates a merb application.
    DESC
    
    first_argument :name, :required => true, :desc => "Application name"
    
    invoke :app_full, :flat => nil, :very_flat => nil
    invoke :app_flat, :flat => true
    invoke :app_very_flat, :very_flat => true
  end
  
  add :app, MerbGenerator
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thorero-gen-0.9.4 lib/merb-gen/merb.rb