Sha256: 10fe05767bdae19a97240b7f073fb903e155f5eeb60389296c926a07f1ea08d0

Contents?: true

Size: 687 Bytes

Versions: 36

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true
require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root File.expand_path('../../../test_app_templates', __dir__)

  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
    options = '--devise'
    if ENV['BLACKLIGHT_API_TEST']
      options += ' --skip-assets'
    end

    generate 'blacklight:install', options
  end

  def run_test_support_generator
    say_status("warning", "GENERATING test_support", :yellow)

    generate 'blacklight:test_support'
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.39.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.38.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.37.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.36.2 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.36.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.36.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.35.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.34.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.33.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.33.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.32.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.31.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.30.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.29.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.28.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.27.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.27.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-7.26.1 spec/test_app_templates/lib/generators/test_app_generator.rb