global
def make_log(artifact, command)
def make_log(artifact, command) if (File.exist?(artifact)) puts " #{artifact} exists" else cmd = run(command).log_to_file(artifact) if (cmd.exitstatus != 0) File.delete(artifact) if (File.exist?(artifact)) end cmd end end