Sha256: b0760b80e75b2952e8ba319fd49a9d53987da625149d2512624930f39206e23b

Contents?: true

Size: 624 Bytes

Versions: 13

Compression:

Stored size: 624 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  def add_gems
    gem 'blacklight'
    Bundler.with_clean_env do
      run 'bundle install'
    end
  end

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

    generate 'blacklight:install'
  end

  def run_hierarchy_install
    generate 'blacklight_hierarchy:install'
  end

  def create_images_directory
    run 'mkdir app/assets/images'
  end

  def add_js_reference
    inject_into_file 'app/assets/config/manifest.js', "\n//= link application.js", after: '//= link_directory ../stylesheets .css'
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blacklight-hierarchy-6.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-6.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-6.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-5.4.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-5.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-5.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-5.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-5.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-4.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-4.2.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-4.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-4.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-hierarchy-4.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb