Sha256: 46eb8559c15e1a242f0f3cae579627e56284d068ce9431d8e40a83aa241a9dd1

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

module Flame
  class AppBuilder < Rails::AppBuilder
    def gemfile
      template "Gemfile.erb", "Gemfile"
    end

    def configure_generators
      config = <<-RUBY
    config.generators do |generate|
      generate.helper false
      generate.javascripts false
      generate.controller_specs false
      generate.request_specs true
      generate.routing_specs false
      generate.stylesheets false
      generate.test_framework :rspec
      generate.view_specs false
      generate.template_engine :haml
    end

      RUBY

      inject_into_class "config/application.rb", "Application", config
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
flamerb-0.3.0 lib/flame/app_builder.rb
flamerb-0.2.3 lib/flame/app_builder.rb
flamerb-0.2.0 lib/flame/app_builder.rb
flamerb-0.1.3 lib/flame/app_builder.rb
flamerb-0.1.2 lib/flame/app_builder.rb
flamerb-0.1.1 lib/flame/app_builder.rb