Sha256: 7d0470b5d603ed3cde59121ea911e3a22168614027536510118dd51aedfa18f7
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 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 remove_index remove_file "public/index.html" end def run_blacklight_generator say_status("warning", "GENERATING BL", :yellow) gem 'blacklight' Bundler.with_clean_env do run "bundle install" end generate 'blacklight:install', '--devise --jettywrapper' end def run_test_support_generator say_status("warning", "GENERATING test_support", :yellow) generate 'blacklight:test_support' end def run_blacklight_marc_generator generate 'blacklight_marc:marc' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-marc-5.5.0 | spec/test_app_templates/lib/generators/test_app_generator.rb |