Sha256: 3b6e0ddb9d9a0dde029f79f1ebd86a7e8efc1378fcc0669143cdadd40794890b

Contents?: true

Size: 710 Bytes

Versions: 17

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

require 'generators/warclight/install_generator'

module Warclight
  ##
  # Warclight 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 < Warclight::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

17 entries across 17 versions & 1 rubygems

Version Path
warclight-0.9.0 lib/generators/warclight/update_generator.rb
warclight-0.8.3 lib/generators/warclight/update_generator.rb
warclight-0.8.2 lib/generators/warclight/update_generator.rb
warclight-0.8.1 lib/generators/warclight/update_generator.rb
warclight-0.8.0 lib/generators/warclight/update_generator.rb
warclight-0.7.1 lib/generators/warclight/update_generator.rb
warclight-0.7.0 lib/generators/warclight/update_generator.rb
warclight-0.6.3 lib/generators/warclight/update_generator.rb
warclight-0.6.2 lib/generators/warclight/update_generator.rb
warclight-0.6.1 lib/generators/warclight/update_generator.rb
warclight-0.6.0 lib/generators/warclight/update_generator.rb
warclight-0.5.0 lib/generators/warclight/update_generator.rb
warclight-0.4.0 lib/generators/warclight/update_generator.rb
warclight-0.3.0 lib/generators/warclight/update_generator.rb
warclight-0.2.0 lib/generators/warclight/update_generator.rb
warclight-0.1.1 lib/generators/warclight/update_generator.rb
warclight-0.1.0 lib/generators/warclight/update_generator.rb