Sha256: 157cc41cb3a95479088790df48529d79ecce0a4c859737ec1bf5904cf1ac15ab

Contents?: true

Size: 973 Bytes

Versions: 6

Compression:

Stored size: 973 Bytes

Contents

# -*- encoding : utf-8 -*-
# Copy Blacklight test support material in place


# Need the requires here so we can call the generator from environment.rb
# as suggested above. 
require 'rails/generators'
require 'rails/generators/base'
module Blacklight
  class TestSupport < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
  desc """ 
Installs a jetty container with a solr installed in it. A solr setup known 
good with default blacklight setup, including solr conf files for out
of the box blacklight. 

Also adds jetty_path key to solr.yml for selected environment, to refer
to this install. 

Requires system('unzip... ') to work, probably won't work on Windows.

"""
    def alternate_controller
      copy_file "alternate_controller.rb", "app/controllers/alternate_controller.rb"

      route("resources :alternate do
                member do
                  get :facet
                end
              end")


    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-4.0.1 lib/generators/blacklight/test_support_generator.rb
blacklight-4.0.0 lib/generators/blacklight/test_support_generator.rb
blacklight-4.0.0.rc2 lib/generators/blacklight/test_support_generator.rb
blacklight-4.0.0.rc1 lib/generators/blacklight/test_support_generator.rb
blacklight-4.0.0.pre7 lib/generators/blacklight/test_support_generator.rb
blacklight-4.0.0.pre6 lib/generators/blacklight/test_support_generator.rb