Class: BetterAuth::Hanami::Generators::InstallGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/better_auth/hanami/generators/install_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(destination_root: Dir.pwd) ⇒ InstallGenerator

Returns a new instance of InstallGenerator.



11
12
13
# File 'lib/better_auth/hanami/generators/install_generator.rb', line 11

def initialize(destination_root: Dir.pwd)
  @destination_root = destination_root
end

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
# File 'lib/better_auth/hanami/generators/install_generator.rb', line 15

def run
  create_provider
  create_task
  update_routes
  update_settings
  RelationGenerator.new(destination_root: destination_root).run
  MigrationGenerator.new(destination_root: destination_root).run
end