Sha256: 9819c50a8ec2722b3cbb8a804c3ca3545b3a89e6ec64257c50072977eaa0dfcf

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base

  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'
  end

  def run_vlr_engine_install
    generate 'commonwealth_vlr_engine:install'
  end

  # TODO: configure various YAML files, run db migrations, set institutions = true, etc.

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 spec/test_app_templates/lib/generators/test_app_generator.rb
commonwealth-vlr-engine-0.0.4 spec/test_app_templates/lib/generators/test_app_generator.rb
commonwealth-vlr-engine-0.0.3 spec/test_app_templates/lib/generators/test_app_generator.rb
commonwealth-vlr-engine-0.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb