Sha256: 1a83f91dfb727915cfd793c24c40913acca4c2291ff05a155e727a269248e876
Contents?: true
Size: 759 Bytes
Versions: 10
Compression:
Stored size: 759 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../spec/test_app_templates", __FILE__) def remove_index remove_file "public/index.html" remove_file 'app/assets/images/rails.png' end def run_blacklight_generator say_status("warning", "GENERATING BL", :yellow) generate 'blacklight:install' end def run_blacklight_advanced_search generate 'blacklight_advanced_search:install', '--force' end def run_test_support_generator say_status("warning", "GENERATING test_support", :yellow) generate 'blacklight:test_support' end def copy_blacklight_catalog_controller copy_file "app/controllers/catalog_controller.rb", :force => true end end
Version data entries
10 entries across 10 versions & 1 rubygems