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