Sha256: fe8c2e328a1cbc77a8ee3bc0f37dc5bda31a131ea1ce5c6d3c736b976f2ed35b

Contents?: true

Size: 569 Bytes

Versions: 4

Compression:

Stored size: 569 Bytes

Contents

require 'rails/generators'

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

  def add_gems
    gem 'blacklight'
    Bundler.with_clean_env do
      run "bundle install"
    end
  end

  # This is only necessary for Rails 3
  def remove_index
    remove_file "public/index.html"
  end

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

    generate 'blacklight:install'
  end

  def run_hierarchy_install
    generate 'blacklight_hierarchy:install'
  end

end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
blacklight-hierarchy-0.1.1 spec/internal/lib/generators/test_app_generator.rb
blacklight-hierarchy-0.1.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-0.1.0 spec/internal/lib/generators/test_app_generator.rb
blacklight-hierarchy-0.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb