Sha256: 2d658e069f70cef363fffcc79b4a6f8b35cf930e34ea66798bcc600fd94eeaf6
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
module Merb::Generators class MerbFullGenerator < NamedGenerator def self.source_root File.join(super, 'application', 'merb') end option :testing_framework, :default => :rspec, :desc => 'Testing framework to use (one of: rspec, test_unit).' option :orm, :default => :none, :desc => 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel).' option :template_engine, :default => :erb, :desc => 'Template engine to prefer for this application (one of: erb, haml).' desc <<-DESC This generates a Merb application with Ruby on Rails like structure. Generator lets you configure your ORM and testing framework of choice. DESC glob! first_argument :name, :required => true, :desc => "Application name" invoke :layout do |generator| generator.new(destination_root, options, 'application') end def destination_root File.join(@destination_root, base_name) end end add_private :app_full, MerbFullGenerator end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-gen-0.9.5 | lib/generators/merb/merb_full.rb |
merb-gen-0.9.6 | lib/generators/merb/merb_full.rb |