Sha256: 71cc2720baf0707076aa9a1a37e7742ebc85b9c648fc6169443757aca9bd9897
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
module Merb::Generators class MerbFlatGenerator < ApplicationGenerator def self.source_root File.join(super, 'merb_flat') end desc <<-DESC This generates a flat merb application: all code but config files and templates fits in one application. This is something in between Sinatra and "regular" Merb application. DESC first_argument :name, :required => true, :desc => "Application name" glob! def app_name self.name.snake_case end def destination_root File.join(@destination_root, app_name) end end add_private :app_flat, MerbFlatGenerator end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thorero-gen-0.9.4 | lib/merb-gen/merb/merb_flat.rb |