Class: Hatate::AppGenerator

Inherits:
Rails::Generators::AppGenerator
  • Object
show all
Defined in:
lib/hatate/app_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AppGenerator

Returns a new instance of AppGenerator.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/hatate/app_generator.rb', line 3

def initialize(*args)
  super

  self.options = options.merge(
    database: "postgresql",
    css: "tailwind",
    asset_pipeline: "propshaft",
    skip_test: true,
    skip_jbuilder: true,
    skip_bundle: true
  ).freeze
end

Instance Method Details

#finish_templateObject



16
17
18
19
20
21
22
23
24
# File 'lib/hatate/app_generator.rb', line 16

def finish_template
  build :ruby_version
  build :dependencies
  build :database_config
  build :test_helpers
  build :github_actions

  super
end