color output if termcolor is installed

This commit is contained in:
MaZderMind 2014-07-23 23:36:19 +02:00
parent 3f057cc5d4
commit f425cc291c
4 changed files with 18 additions and 6 deletions

View file

@ -202,5 +202,5 @@ def ticket(ticket):
def deploy(ticket, task):
for encoder in range(1, 6):
print("encoder{n}".format(n=encoder))
print(colored("--> rsync'ing to encoder{n}".format(n=encoder), 'green'))
subprocess.check_call('rsync -v --bwlimit=1000 --progress -e="ssh -A voc@gw.ep14.c3voc.de ssh -A voc@encoder{n}.lan.c3voc.de" {file} :{file}'.format(n=encoder, file=task.outfile), shell=True)