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
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
def generate_manifest(): sh('rm -f ${BE_ROOT}/repo-manifest') for k, v in manifest.items(): appendfile('${BE_ROOT}/repo-manifest', e('${k} ${v}'))