Exemplo n.º 1
0
def ssh(command, logfile):
    appendfile(logfile, 'ssh: ${command}')
    proc = subprocess.Popen(ssh_args + [command],
                            stderr=subprocess.PIPE,
                            stdout=subprocess.PIPE,
                            close_fds=True)

    out, err = proc.communicate()
    appendfile(logfile, out, nl=False)
    appendfile(logfile, err, nl=False)

    return proc.returncode, out, err
Exemplo n.º 2
0
def ssh(command, logfile):
    appendfile(logfile, 'ssh: ${command}')
    proc = subprocess.Popen(
        ssh_args + [command],
        stderr=subprocess.PIPE,
        stdout=subprocess.PIPE,
        close_fds=True
    )

    out, err = proc.communicate()
    appendfile(logfile, out, nl=False)
    appendfile(logfile, err, nl=False)

    return proc.returncode, out, err
Exemplo n.º 3
0
def generate_manifest():
    sh('rm -f ${BE_ROOT}/repo-manifest')
    for k, v in manifest.items():
        appendfile('${BE_ROOT}/repo-manifest', e('${k} ${v}'))
Exemplo n.º 4
0
def generate_manifest():
    sh('rm -f ${BE_ROOT}/repo-manifest')
    for k, v in manifest.items():
        appendfile('${BE_ROOT}/repo-manifest', e('${k} ${v}'))