Sha256: c401a117b6f463896ec1b6ef39d2963457978dcb26c8582f3974391c9fa124af

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 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 :setup_database
      build :configure_generators
      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

1 entries across 1 versions & 1 rubygems

Version Path
shoestrap-0.0.2.pre lib/generators/shoestrap/app_generator.rb