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

Version Path
blacklight-6.25.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.24.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.23.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.22.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.21.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.20.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.19.2 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.19.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.19.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.18.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.17.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.16.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.15.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.14.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.14.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.13.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.12.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.11.2 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.11.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-6.11.0 spec/test_app_templates/lib/generators/test_app_generator.rb