Sha256: a2b584e3e740574d42edf597280521a19fadeabe9862a2a2252417befda6eae9

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

module VirusScanService
  class KasperskyRunner
    class LinuxExecutor
      # not tested on real production as I'm using windows VM for virus scans
      def scan(file_path, log_path)
        system 'sudo',
          '/opt/kaspersky/kes4lwks/bin/kes4lwks-control',
          '--scan-file',
          file_path.to_s,
          ">>",
          log_path.to_s
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virus_scan_service-0.1.0 lib/virus_scan_service/kaspersky_runner/linux_executor.rb
virus_scan_service-0.0.8 lib/virus_scan_service/kaspersky_runner/linux_executor.rb