Class: BetterAuth::Hanami::Generators::InstallGenerator
- Inherits:
-
Object
- Object
- BetterAuth::Hanami::Generators::InstallGenerator
- Defined in:
- lib/better_auth/hanami/generators/install_generator.rb
Instance Method Summary collapse
-
#initialize(destination_root: Dir.pwd) ⇒ InstallGenerator
constructor
A new instance of InstallGenerator.
- #run ⇒ Object
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
#run ⇒ Object
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 |