Sha256: e713e9d06488e133f9c3957fa7fd18367948926b5a3b6129873bcdaf3f57fd37

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 Bytes

Contents

require 'rails/generators'

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

  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_oembed_install
    generate 'blacklight_oembed:install'
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-oembed-1.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-1.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-1.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.0.4 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.0.3 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb
blacklight-oembed-0.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb