Sha256: 9ca2479e3810d41ee35c6b9579e8837aa16f0ee0325e2ca20d7c9340a558fe73
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../test_app_templates", __FILE__) def fix_travis_rails_4 if ENV['TRAVIS'] insert_into_file 'app/assets/stylesheets/application.css', :before =>'/*' do "@charset \"UTF-8\";\n" end end end 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_test_support_generator say_status("warning", "GENERATING test_support", :yellow) generate 'blacklight:test_support' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight_marc-0.0.5 | spec/test_app_templates/lib/generators/test_app_generator.rb |