Class: InertiaRails::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- InertiaRails::InstallGenerator
- Defined in:
- lib/generators/inertia_rails/install_generator.rb
Constant Summary collapse
- FRONT_END_INSTALLERS =
[ 'react', 'vue', 'svelte', ]
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/inertia_rails/install_generator.rb', line 12 def install exit! unless installable? install_base! send "install_#{[:front_end]}!" say "You're all set! Run rails s and checkout localhost:3000/inertia-example", :green end |