lib/psulib_blacklight/solr_config.rb
# Returns a combined MD5 digest for all files in solr config directory
Returns a combined MD5 digest for all files in solr config directory
Returns a combined MD5 digest for all files in solr config directory
def solr_md5
        digest = []
        Dir.glob("#{SOLR_DIR}/**/*").each do |f|
          digest.push(Digest::MD5.hexdigest(File.open(f).read)) if File.file?(f)
        end
        Digest::MD5.hexdigest(digest.join(''))
      end
def solr_md5 digest = [ ] Dir . glob ( "#{SOLR_DIR}/**/*" ) . each do | f | digest . push ( Digest :: MD5 . hexdigest ( File . open ( f ) . read ) ) if File . file? ( f ) end Digest :: MD5 . hexdigest ( digest . join ( '' ) ) end
Returns a combined MD5 digest for all files in solr config directory
Returns a combined MD5 digest for all files in solr config directory