Sha256: f7537ed7079832a2fc66e1f28a63e6919cf2b5fbe1a39c6e024474e1320362de

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

require 'rails/generators'
require 'rails/generators/rails/app/app_generator'
require 'stationed/app_builder'
require 'stationed/generators/plugins'

module Stationed
  module Generators
    class AppGenerator < Rails::Generators::AppGenerator
      source_root File.expand_path('../templates', __FILE__)
      source_paths << Rails::Generators::AppGenerator.source_root
      source_paths << source_root

      prepend Plugins::Rubocop
      prepend Plugins::Pry
      prepend Plugins::Guard
      prepend Plugins::Rspec
      prepend Plugins::FactoryGirl
      prepend Plugins::DatabaseCleaner
      prepend Plugins::Capybara
      prepend Plugins::CapybaraWebkit
      prepend Plugins::Pundit
      prepend Plugins::Yard
      prepend Plugins::Foreman
      prepend Plugins::Styles
      prepend Plugins::Draper
      prepend Plugins::Wiki
      prepend Plugins::Generators
      prepend Plugins::Devise
      prepend Plugins::Turbolinks
      prepend Plugins::Kaminari
      prepend Plugins::SimpleForm
      prepend Plugins::Haml
      prepend Plugins::StrongParameters
      prepend Plugins::RackDeflater
      prepend Plugins::Flashes
      prepend Plugins::Webmock
      prepend Plugins::Layout
      prepend Plugins::Normalize
      prepend Plugins::I18nSpec
      prepend Plugins::SimpleFormInputs
      prepend Plugins::Spring
      prepend Plugins::Stationed
      prepend Plugins::Responders

      protected

      def get_builder_class
        Stationed::AppBuilder
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stationed-0.0.1 lib/stationed/generators/app_generator.rb