Sha256: 68025c081654a6065f1d1734c47af4748403f0e37fb5f0c5a84c4667233e0d08
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
require "merb-gen/helpers" require "merb-gen/base" class MerbGenerator < Merb::GeneratorBase def initialize(args, runtime_options = {}) @base = File.dirname(__FILE__) @name = args.first super @destination_root = @name end protected def banner <<-EOS.split("\n").map{|x| x.strip}.join("\n") Creates a Merb application stub. USAGE: #{spec.name} -g path Set environment variable MERB_ORM=[activerecord|datamapper|sequel] to pre-enabled an ORM. EOS end def default_orm?(orm) ENV['MERB_ORM'] == orm.to_s end def default_test_suite?(suite) return ENV['MERB_TEST_SUITE'] == suite.to_s if ENV['MERB_TEST_SUITE'] options[suite] end def display_framework_selections end def create_dirs m.directory 'log' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-gen-0.9.3 | app_generators/merb/merb_generator.rb |