Class: EdrGenBase
- Inherits:
-
Object
- Object
- EdrGenBase
- Includes:
- Sys, YamlLogger
- Defined in:
- lib/edr_gen/base.rb
Overview
Base class for EDR Generator
Direct Known Subclasses
CreateFile, DeleteFile, ForeignExecutable, ModifyFile, TcpTransmit
Defined Under Namespace
Classes: EdrGenMissingDependencyError
Constant Summary
Constants included from YamlLogger
Instance Method Summary collapse
-
#initialize(args) ⇒ EdrGenBase
constructor
A new instance of EdrGenBase.
Methods included from YamlLogger
Constructor Details
#initialize(args) ⇒ EdrGenBase
Returns a new instance of EdrGenBase.
14 15 16 17 18 19 20 21 22 |
# File 'lib/edr_gen/base.rb', line 14 def initialize(args) raise EdrGenMissingDependencyError, "ACTIVITY constant must be defined in the child class" unless defined? self.class::ACTIVITY @logger = YamlLogger @pid = nil @process_info = {} @path = args[0] @args = args[1..-1] end |