Sha256: d9771418f44167209836ae70e671d4620c8367c2a42d0b165062104b44276cbb
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
require 'rails/generators' require 'rails/generators/rails/app/app_generator' module Cybele class AppGenerator < Rails::Generators::AppGenerator class_option :database, :type => :string, :aliases => '-d', :default => 'postgresql', :desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})" class_option :skip_test_unit, :type => :boolean, :aliases => '-T', :default => true, :desc => 'Skip Test::Unit files' def finish_template invoke :customization super end def customization invoke :add_readme_md invoke :remove_files_we_dont_need end def add_readme_md say 'Add README.md' build :readme end def remove_files_we_dont_need say 'Remove files we don\'t need' build :remove_public_index build :remove_readme_rdoc end protected def get_builder_class Cybele::AppBuilder end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cybele-0.1.0 | lib/cybele/generators/app_generator.rb |