Sha256: fdec729dfb608774207c645ba1f4791567dd4d331e93d721426fc6e3a46bc0b2

Contents?: true

Size: 758 Bytes

Versions: 13

Compression:

Stored size: 758 Bytes

Contents

require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

module Shoestrap
  class AppGenerator < Rails::Generators::AppGenerator
    def finish_template
      invoke :custom_generators
      super
    end

    def custom_generators
      # TODO: rvm! (generate rvmrc from currently used ruby/gemset)
      build :remove_files_we_dont_need
      build :bundle
      build :configure_application
      build :setup_bdd_env
      build :configure_generators
      build :install_kuhsaft
      build :setup_deployment
      build :setup_database
      build :outro
    end

    def run_bundle
      # Don't run bundle now. First add gems etc.
    end

    protected

    def get_builder_class
      Shoestrap::AppBuilder
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shoestrap-0.4.1 lib/generators/shoestrap/app_generator.rb
shoestrap-0.4.0 lib/generators/shoestrap/app_generator.rb
shoestrap-0.3.1.pre lib/generators/shoestrap/app_generator.rb
shoestrap-0.3.0 lib/generators/shoestrap/app_generator.rb
shoestrap-0.3.0.pre2 lib/generators/shoestrap/app_generator.rb
shoestrap-0.3.0.pre1 lib/generators/shoestrap/app_generator.rb
shoestrap-0.3.0.pre lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.5 lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.4 lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.3 lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.2 lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.1 lib/generators/shoestrap/app_generator.rb
shoestrap-0.2.0 lib/generators/shoestrap/app_generator.rb