Sha256: baafcb6b57e6cc58e4ac341255b458852ff0d1243b3b0d18140eb0d0a300046a

Contents?: true

Size: 326 Bytes

Versions: 12

Compression:

Stored size: 326 Bytes

Contents

require 'rails/generators'

namespace :blacklight_range_limit do
  desc 'Add in additional Solr docs'
  task seed: :environment do
    solr = CatalogController.new.repository.connection
    docs = Dir['spec/fixtures/solr_documents/*.yml'].map { |f| YAML.load File.read(f) }.flatten
    solr.add docs
    solr.commit
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight_range_limit-6.5.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.4.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.3.3 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.3.2 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.3.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.3.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.2.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.2.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.1.2 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.1.1 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.1.0 lib/tasks/blacklight_range_limit.rake
blacklight_range_limit-6.0.0 lib/tasks/blacklight_range_limit.rake