Class: FileContentDatastream

Inherits:
Object
  • Object
show all
Defined in:
app/repository_datastreams/file_content_datastream.rb

Overview

Instance Method Summary collapse

Instance Method Details

#run_fits!(file_path) ⇒ Object

This is where I chose to insert the anti-virus. My reason being that the caller of this method is getting the Fedora datastream and writing it to a temp file for characterization; So to ease the load, I’m piggy backing on that behavior and first running an Anti-Virus scanner



18
19
20
21
# File 'app/repository_datastreams/file_content_datastream.rb', line 18

def run_fits!(file_path)
  anti_virus_scanner.call(file_path)
  characterization_runner.call(file_path)
end