demarches-normaliennes/app/services/clamav_service.rb

9 lines
192 B
Ruby
Raw Normal View History

2016-04-14 16:50:13 +02:00
class ClamavService
2016-04-14 17:43:27 +02:00
def self.safe_io_data? path_file
2016-04-14 17:29:26 +02:00
client = ClamAV::Client.new
2016-04-14 16:50:13 +02:00
2016-04-14 17:43:27 +02:00
response = client.execute(ClamAV::Commands::ScanCommand.new(path_file))
2016-04-14 17:29:26 +02:00
puts response
2016-04-14 16:50:13 +02:00
end
end