Class: EdrGenBase

Inherits:
Object
  • Object
show all
Includes:
Sys, YamlLogger
Defined in:
lib/edr_gen/base.rb

Overview

Base class for EDR Generator

Defined Under Namespace

Classes: EdrGenMissingDependencyError

Constant Summary

Constants included from YamlLogger

YamlLogger::LOG_DIRECTORY

Instance Method Summary collapse

Methods included from YamlLogger

write

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