Ejemplo n.º 1
0
def write_sourcecode_digest(run, opdef):
    if opdef.sourcecode.digest is False:
        log.info("sourcecode digest disabled for operation '%s' - skipping",
                 opdef.fullname)
        return
    if (opdef.sourcecode.digest is not True
            and opdef.modeldef.sourcecode.digest is False):
        log.info("sourcecode digest disabled for model '%s' - skipping",
                 opdef.modeldef.name)
        return
    digest = file_util.files_digest(run.guild_path("sourcecode"))
    run.write_attr("sourcecode_digest", digest)
Ejemplo n.º 2
0
def write_sourcecode_digest(run, sourcecode_root):
    src = os.path.join(run.dir, sourcecode_root)
    digest = file_util.files_digest(src)
    run.write_attr("sourcecode_digest", digest)
Ejemplo n.º 3
0
def write_sourcecode_digest(run):
    digest = file_util.files_digest(run.guild_path("sourcecode"))
    run.write_attr("sourcecode_digest", digest)