Class: Owasp::Esapi::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/executor.rb

Overview

Executor class

Instance Method Summary collapse

Instance Method Details

#execute_command(cmd, params, working_dir, codec, redirect_error) ⇒ Object

Wrapper for Process#spawn it sanitizes the parames and validates paths before execution


14
15
16
17
# File 'lib/executor.rb', line 14

def execute_command(cmd,params,working_dir,codec,redirect_error)
  cmd_path = File.expand_path(cmd)

end