Class: ForeignExecutable

Inherits:
EdrGenBase show all
Defined in:
lib/edr_gen/foreign_executable.rb

Overview

This class is used to run executables that are not part of this program.

Constant Summary collapse

ACTIVITY =
"process_start"

Constants included from YamlLogger

YamlLogger::LOG_DIRECTORY

Instance Method Summary collapse

Methods included from YamlLogger

write

Constructor Details

#initialize(args) ⇒ ForeignExecutable

Returns a new instance of ForeignExecutable.



7
8
9
# File 'lib/edr_gen/foreign_executable.rb', line 7

def initialize(args)
  super(args)
end

Instance Method Details

#callObject



11
12
13
14
15
# File 'lib/edr_gen/foreign_executable.rb', line 11

def call
  puts "  Executing \"#{path}\" with options: #{args} ..."
  execute_process
  puts "  Process started with PID: #{pid}"
end