Sha256: ef858241ee6c48abe2c17ae4d13e1a8806b059639d0a5eaade0185e72ce6dd39
Contents?: true
Size: 875 Bytes
Versions: 7
Compression:
Stored size: 875 Bytes
Contents
namespace :cul_scv_hydra do namespace :index do task :recursively_index_fedora_objects => :environment do puts '---------------------------' puts 'Fedora URL: ' + ActiveFedora.config.credentials[:url] puts 'Solr URL: ' + ActiveFedora.solr_config[:url] puts '---------------------------' START_TIME = Time.now ENV["RAILS_ENV"] ||= Rails.env pid = ENV['pid'] if ENV['omit'] pids_to_omit = ENV['omit'].split(',').map{|pid|pid.strip} else pids_to_omit = nil end skip_generic_resources = true if ENV['skip_generic_resources'] == 'true' begin Cul::Scv::Hydra::Indexer.recursively_index_fedora_objects(pid, pids_to_omit, skip_generic_resources, true) rescue => e puts 'Error: ' + e.message puts e.backtrace next end end end end
Version data entries
7 entries across 7 versions & 1 rubygems