Sha256: e455f589042291c8a1e72343e7574e27549825af504947ff1b2ccd6ad5b9ba08
Contents?: true
Size: 823 Bytes
Versions: 42
Compression:
Stored size: 823 Bytes
Contents
# frozen_string_literal: true 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) Bundler.with_clean_env do run "bundle install" end generate 'blacklight:install', '--devise --marc --jettywrapper' end def run_test_support_generator say_status("warning", "GENERATING test_support", :yellow) generate 'blacklight:test_support' end end
Version data entries
42 entries across 42 versions & 1 rubygems