module Rclam::ClamAV
Public Class Methods
installed?()
click to toggle source
# File lib/rclam/clamav.rb, line 4 def self.installed? executable_location = %x{which clamscan} !executable_location.empty? end
scan(location)
click to toggle source
# File lib/rclam/clamav.rb, line 18 def self.scan(location) output, err, status = Open3.capture3("clamscan -ri #{location}") output end
up_to_date?()
click to toggle source
# File lib/rclam/clamav.rb, line 9 def self.up_to_date? last_update = Rclam::Helpers.last_signatures_update Rclam::Helpers.date_within_a_day?(last_update) end
update()
click to toggle source
# File lib/rclam/clamav.rb, line 14 def self.update %x{freshclam} end