Class: Dobby::VulnSource::AbstractVulnSource Abstract

Inherits:
Object
  • Object
show all
Includes:
Strategy
Defined in:
lib/dobby/vuln_source/abstract_vuln_source.rb

Overview

This class is abstract.

Subclass and override #update and ##clean to implement a

custom Database source.

Direct Known Subclasses

Debian, Ubuntu

Instance Attribute Summary

Attributes included from Strategy

#options

Instance Method Summary collapse

Methods included from Strategy

included, #initialize, #inspect, #log, #setup

Instance Method Details

#clean

This method returns an undefined value.

Instruct a strategy to clean up after itself, removing any files it may have created.

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/dobby/vuln_source/abstract_vuln_source.rb', line 21

def clean
  raise NotImplementedError
end

#updateUpdateResponse

Retrieve a source database (if necessary) and parse it.

Returns:

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/dobby/vuln_source/abstract_vuln_source.rb', line 13

def update
  raise NotImplementedError
end