Sha256: eaa9c8351acadee415910cf33a3b52a7e59c55c1baadf4b30f19f78d59e1ec3e

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

module Ddr
  module Antivirus
    module Adapters
      #
      # The NullScannerAdapter provides a no-op adapter, primarily for testing and development.
      #
      class NullScannerAdapter < ScannerAdapter

        def scan(path)
          Ddr::Antivirus::ScanResult.new("#{path}: NOT SCANNED - using :null scanner adapter.", path)
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddr-antivirus-1.2.1 lib/ddr/antivirus/adapters/null_scanner_adapter.rb
ddr-antivirus-1.2.0 lib/ddr/antivirus/adapters/null_scanner_adapter.rb