Class: Boring::Stimulus::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Boring::Stimulus::InstallGenerator
- Defined in:
- lib/generators/boring/stimulus/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_stimulus_ruby_gem ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/boring/stimulus/install/install_generator.rb', line 9 def add_stimulus_ruby_gem say "Adding Stimulus gem", :green Bundler.with_unbundled_env do run "bundle add stimulus-rails" end end |
#generating_devise_defaults ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/boring/stimulus/install/install_generator.rb', line 16 def say "Generating stimulus defaults", :green Bundler.with_unbundled_env do run "DISABLE_SPRING=1 bundle exec rails stimulus:install" end end |