예제 #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
예제 #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
예제 #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}'))
예제 #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}'))