require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root './spec/test_app_templates' # if you need to generate any additional configuration # into the test app, this generator will be run immediately # after setting up the application def add_gems gem 'blacklight', '~> 6.0' gem 'geoblacklight', '~> 1.7' Bundler.with_clean_env do run 'bundle install' end end def run_blacklight_generator say_status('warning', 'GENERATING BL', :yellow) generate 'blacklight:install', '--devise' end def run_geoblacklight_generator say_status('warning', 'GENERATING GBL', :yellow) generate 'geoblacklight:install', '--force' end def run_geoblacklight_sidecar_images_generator say_status('warning', 'GENERATING GBLSI', :yellow) generate 'geoblacklight_sidecar_images:install' end end