Sha256: b4018e1a4685179b04a3ad1796dbb44b65953d76e058f5ddb5cd8d0cefefaeee

Contents?: true

Size: 818 Bytes

Versions: 10

Compression:

Stored size: 818 Bytes

Contents

require 'rails/generators'

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

  def add_gems
    gem 'blacklight', '~> 6.3'
    gem 'teaspoon'
    gem 'teaspoon-jasmine'
    Bundler.with_clean_env do
      run 'bundle install'
    end
  end

  def run_blacklight_generator
    say_status('warning', 'GENERATING BL', :yellow)

    generate 'blacklight:install', '--devise'
  end

  def install_engine
    generate 'geoblacklight:install'
  end

  def fixtures
    FileUtils.mkdir_p 'spec/fixtures/solr_documents'
    directory 'solr_documents', 'spec/fixtures/solr_documents'
  end

  def install_teaspoon
    # Implicit copy of GeoBlacklight checked-in teaspoon_env.rb
    copy_file '../teaspoon_env.rb', 'spec/teaspoon_env.rb'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geoblacklight-1.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.1.2 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.3 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.0.pre3 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.0.pre2 spec/test_app_templates/lib/generators/test_app_generator.rb
geoblacklight-1.0.0.pre1 spec/test_app_templates/lib/generators/test_app_generator.rb