Sha256: de01696e3a8093f24f451da19a0eac5ee40f1b07712eb39b069e31add8f16cf5

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

require 'clam_chowder/scanner'

module ClamChowder
  class ScanException < StandardError; end

  class << self
    attr_accessor :default_backend

    def infected_stream?(io)
      response = Scanner.new(default_backend).scan_io(io)
      response.infected?
    rescue => e
      raise ScanException.new(e)
    end
  end

  self.default_backend = :clamd
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clam_chowder-0.0.2 lib/clam_chowder.rb
clam_chowder-0.0.1 lib/clam_chowder.rb