require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../test_app_templates", __FILE__) def remove_index remove_file "public/index.html" end def run_blacklight_generator say_status("warning", "GENERATING BL", :yellow) Bundler.with_clean_env do run "bundle install" end generate 'blacklight:install' end def run_gallery_install generate 'blacklight_unapi:install' end end