mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
Merge remote-tracking branch 'upstream/ids_lab_squashed' into week_4_merge_branch
# Conflicts: # lib/templates/Vagrantfile.erb
This commit is contained in:
@@ -304,6 +304,11 @@ class System
|
||||
command = "ruby #{selected.local_calc_file} #{args_string}"
|
||||
Print.verbose "Running: #{command}"
|
||||
outputs = `#{command}`.chomp
|
||||
unless $?.success?
|
||||
Print.err "Module failed to run (#{command})"
|
||||
# TODO: this works, but subsequent attempts at resolving the scenario always fail ("Error can't add no data...")
|
||||
raise 'failed'
|
||||
end
|
||||
output_array = outputs.split("\n")
|
||||
selected.output = output_array.map { |o| Base64.strict_decode64 o }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user