Sha256: 05b72a0c0ae85ef92e271352fb7cb6f207a01f25c7c4959e40c7474c18ffcbbc

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

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

  # if you need to generate any additional configuration
  # into the test app, this generator will be run immediately
  # after setting up the application

  def generate_blacklight
    say_status('status', 'GENERATING BLACKLIGHT', :yellow)
    generate 'blacklight:install', '--devise'
  end

  def configure_blacklight
    say_status('status', 'CONFIGURING BLACKLIGHT', :yellow)
    remove_file 'config/blacklight.yml'
    copy_file 'blacklight.yml', 'config/blacklight.yml'
  end

  def run_access_controls_generator
    generate 'blacklight:access_controls'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-access_controls-6.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-access_controls-6.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-access_controls-0.7.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-access_controls-0.7.0.rc1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-access_controls-0.6.2 spec/test_app_templates/lib/generators/test_app_generator.rb