Sha256: 5963d8980ac24ed114eb15c6f9e5955b92e4ef32a07f06a2cd5bef324ab91ed4

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

require 'open3'
module VirusScanService
  class KasperskyRunner
    class LinuxExecutor
      def scan(file_path, log_path)
        stdout, stderr, status = Open3.capture3(
         "sudo /opt/kaspersky/kes4lwks/bin/kes4lwks-control --scan-file #{file_path.to_s}"
        )
        File.open(log_path.to_s, 'w') { |file| file.write(stdout) }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virus_scan_service-0.2.1 lib/virus_scan_service/kaspersky_runner/linux_executor.rb
virus_scan_service-0.2.0 lib/virus_scan_service/kaspersky_runner/linux_executor.rb