Sha256: 79bf939df59d27cff0d5d6fe4d749733b9f3161483b2c6e78e1d731fdd0eb768

Contents?: true

Size: 954 Bytes

Versions: 22

Compression:

Stored size: 954 Bytes

Contents

# frozen_string_literal: true

module EacRailsBase0
  module AppGenerator
    class Builder < Rails::AppBuilder
      def readme
        # Do nothing
      end

      def app
        directory 'app'
      end

      def config
        inside 'config' do
          template 'routes.rb'
          template 'application.rb'
          template 'environment.rb'
          template 'secrets.yml'
        end
      end

      def database_yml
        template 'config/database.yml'
      end

      def db
        directory 'db'
      end

      def lib
        directory 'lib'
      end

      def log
        # Do nothing
        empty_directory_with_keep_file 'log'
      end

      def test
        # Do nothing
      end

      def tmp
        # Do nothing
      end

      def vendor
        # Do nothing
      end

      def vendor_javascripts
        # Do nothing
      end

      def vendor_stylesheets
        # Do nothing
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
eac_rails_base0-0.60.2 lib/eac_rails_base0/app_generator/builder.rb
eac_rails_base0-0.60.1 lib/eac_rails_base0/app_generator/builder.rb