Sha256: 60a40f2b33a15f3db38fef82a1af636f6e46a3eebc77a42b0840c2e122c585e3

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require 'generators/arclight/install_generator'

module Arclight
  ##
  # Arclight Update generator. This subclasses the Install generator, so this is
  # intended to override behavior in the install generator that can allow the
  # downstream application to choose if they want to take our changes or not and
  # can choose to see a diff of our changes to help them decide.
  class Update < Arclight::Install
    source_root File.expand_path('../templates', __FILE__)

    def create_blacklight_catalog
      copy_file 'catalog_controller.rb', 'app/controllers/catalog_controller.rb'
    end

    def solr_config
      directory '../../../../solr', 'solr'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arclight-0.2.0 lib/generators/arclight/update_generator.rb
arclight-0.1.4 lib/generators/arclight/update_generator.rb
arclight-0.1.3 lib/generators/arclight/update_generator.rb
arclight-0.1.2 lib/generators/arclight/update_generator.rb
arclight-0.1.1 lib/generators/arclight/update_generator.rb
arclight-0.1.0 lib/generators/arclight/update_generator.rb