Module: ASConstants::Solr
- Defined in:
- common/asconstants.rb
Class Method Summary collapse
Class Method Details
.checksum(file) ⇒ Object
29 30 31 |
# File 'common/asconstants.rb', line 29 def self.checksum(file) Digest::SHA2.hexdigest(File.read(File.join(*[ ASUtils.find_base_directory, 'solr', file]))) end |
.SCHEMA ⇒ Object
21 22 23 |
# File 'common/asconstants.rb', line 21 def self.SCHEMA checksum 'schema.xml' end |
.SOLRCONFIG ⇒ Object
25 26 27 |
# File 'common/asconstants.rb', line 25 def self.SOLRCONFIG checksum 'solrconfig.xml' end |