Sha256: ecd0e63104cdbb5c6b4f096e088c42315e05ce7478d780aa4a97cb24c7b4c452

Contents?: true

Size: 775 Bytes

Versions: 12

Compression:

Stored size: 775 Bytes

Contents

module Pah
  module Templates
    class Generator < Pah::Template
      def call
        generators = <<GENERATORS

    # Do not generate specs for views and requests. Also, do not generate assets.
    config.generators do |g|
      g.helper false
      g.view_specs false
      g.assets false
      g.integration_tool false
    end
    config.app_generators do |g|
      g.test_framework :rspec
    end

    # Prevent initializing your application and connect to the database on assets precompile.
    config.assets.initialize_on_precompile = false
GENERATORS

        inject_into_file 'config/application.rb', generators, after: 'Rails::Application', verbose: false

        git add: 'config/application.rb'
        git_commit 'Add generators.'
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/generators.rb
pah-0.0.27 lib/pah/templates/generators.rb
pah-0.0.26 lib/pah/templates/generators.rb
pah-0.0.25 lib/pah/templates/generators.rb
pah-0.0.24 lib/pah/templates/generators.rb
pah-0.0.23 lib/pah/templates/generators.rb
pah-0.0.22 lib/pah/templates/generators.rb
pah-0.0.21 lib/pah/templates/generators.rb
pah-0.0.20 lib/pah/templates/generators.rb
pah-0.0.19 lib/pah/templates/generators.rb
pah-0.0.17 lib/pah/templates/generators.rb
pah-0.0.16 lib/pah/templates/generators.rb