Sha256: 690eb373115a6b23b40526eda24b28c81d07818bced4cf17e07995010f01b098
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
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" 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', '--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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight_advanced_search-5.1.2 | spec/test_app_templates/lib/generators/test_app_generator.rb |