DisWarden/lib/virus_scanner.rb
VetheonGames 4c2f190bed Push 3
Remove HTTPParty from depends, gonna use the NET/HTTP library from the STDLib, even though it needs more coding to make work.
Replace HTTPParty code with NET/HTTP code.
Move opswat_client and virus_total_client into their own directories for organization
2024-02-11 11:05:39 -07:00

17 lines
461 B
Ruby

# frozen_string_literal: true
require 'httparty'
require_relative 'api_clients/virus_total/virus_total_client'
require_relative 'api_clients/opswat/opswat_client'
# Main class for sending files/links to the security vendors, and getting the response.
class VirusScanner
def self.scan_file_with_virustotal(file_path)
VirusTotalClient.scan_file(file_path)
end
def self.scan_file_with_opswat(file_path)
OpswatClient.scan_file(file_path)
end
end