Class: JetstreamBridge::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jetstream_bridge/install/install_generator.rb

Overview

Install generator.

Instance Method Summary collapse

Instance Method Details

#create_initializerObject



10
11
12
13
# File 'lib/generators/jetstream_bridge/install/install_generator.rb', line 10

def create_initializer
  Rails::Generators.invoke('jetstream_bridge:initializer', [], behavior: behavior,
                                                               destination_root: destination_root)
end

#create_migrationsObject



15
16
17
18
# File 'lib/generators/jetstream_bridge/install/install_generator.rb', line 15

def create_migrations
  Rails::Generators.invoke('jetstream_bridge:migrations', [], behavior: behavior,
                                                              destination_root: destination_root)
end