Sha256: ca0099167b44f82c07bd7655ad9e399650126abae8fc3138e3c4e96f6bfb0829
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../test_app_templates", __FILE__) def copy_blacklight_test_app_rake_task copy_file "lib/tasks/blacklight_test_app.rake" end 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', '--marc' 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-2.2.0 | spec/test_app_templates/lib/generators/test_app_generator.rb |