class Libis::Ingester::FormatFileIdentifier
Protected Instance Methods
process(item)
click to toggle source
# File lib/libis/ingester/tasks/format_file_identifier.rb, line 33 def process(item) result = Libis::Format::Identifier.get(item.fullpath, parameter(:format_options).key_strings_to_symbols) process_messages(result, item) format = result[:formats].first[1] rescue {} assign_format(format, item) rescue => e raise Libis::WorkflowAbort, "Error during Format identification: #{e.message} @ #{e.backtrace.first}" end