def check_deploy_result(operation, console, appname, auth_header):
i = 0
while True:
s = (i % 3 + 1) * '.'
if len(s) < 3:
s = s + (3 - len(s)) * ' '
i += 1
stdout.write("\r%s... %s " % (operation, s))
stdout.flush()
sleep(0.5)
result = app_status(console, appname, auth_header)
if result:
stdout.write("\r%s... %s. " % (operation, result))
stdout.flush()
stdout.write("\n")
return result
评论列表
文章目录