This commit is contained in:
secgen server
2018-02-09 15:37:26 +00:00
parent c7201f63cf
commit e4114364f2

View File

@@ -39,6 +39,7 @@ class GemExec
Dir.chdir(working_dir)
output_hash = {:output => '', :status => 0, :exception => nil}
begin
# Times out after 30 minutes, (TODO: make this configurable)
output_hash[:output] = ProcessHelper.process("#{gem_path} #{arguments}", {:pty => true, :timeout => (60 * 30),
include_output_in_exception: true})
rescue Exception => ex