Class: Boring::Pronto::BaseGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Boring::Pronto::BaseGenerator
- Includes:
- BoringGenerators::GeneratorHelper
- Defined in:
- lib/generators/boring/pronto/base_generator.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from BoringGenerators::GeneratorHelper
#app_ruby_version, #bundle_install, #check_and_install_gem, #gem_installed?, #inject_into_file_if_new
Instance Method Details
#add_pronto_gems ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/generators/boring/pronto/base_generator.rb', line 20 def add_pronto_gems say "Adding pronto gems", :green gem_content = <<~RUBY.strip #{pronto_gem_content} #{pronto_brakemen_gem_content} #{pronto_flay_gem_content} #{pronto_reek_gem_content} #{pronto_rubocop_gem_content} RUBY return if gem_content.blank? insert_into_file "Gemfile", "\n#{gem_content}\n" Bundler.with_unbundled_env { run "bundle install" } end |