lib/generators/blacklight/solr_generator.rb in blacklight-7.0.0.rc1 vs lib/generators/blacklight/solr_generator.rb in blacklight-7.0.0.rc2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'rails/generators' module Blacklight class SolrGenerator < Rails::Generators::Base source_root ::File.expand_path('../templates', __FILE__) @@ -28,8 +30,14 @@ copy_file '.solr_wrapper.yml' end def add_rsolr_gem gem 'rsolr', '>= 1.0', '< 3' + end + + def bundle_install + Bundler.with_clean_env do + run "bundle install" + end end end end