Class: Boring::Stimulus::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_stimulus_ruby_gemObject



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_defaultsObject



16
17
18
19
20
21
# File 'lib/generators/boring/stimulus/install/install_generator.rb', line 16

def generating_devise_defaults
  say "Generating stimulus defaults", :green
  Bundler.with_unbundled_env do
    run "DISABLE_SPRING=1 bundle exec rails stimulus:install"
  end
end