mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
update-deployment: Move color codes to humbug_tools.py.
(imported from commit 96a79a699ea032714b24aa6572fd188433b979a8)
This commit is contained in:
@@ -5,20 +5,13 @@ import subprocess
|
||||
import pylibmc
|
||||
import traceback
|
||||
import logging
|
||||
from humbug_tools import check_output, DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT
|
||||
from humbug_tools import check_output, DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, ENDC
|
||||
import datetime
|
||||
import shutil
|
||||
|
||||
logging.basicConfig(format="%(asctime)s update-deployment: %(message)s",
|
||||
level=logging.INFO)
|
||||
|
||||
# Color codes
|
||||
OKBLUE = '\033[94m'
|
||||
OKGREEN = '\033[92m'
|
||||
WARNING = '\033[93m'
|
||||
FAIL = '\033[91m'
|
||||
ENDC = '\033[0m'
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
oldrev = sys.argv[1]
|
||||
newrev = sys.argv[2]
|
||||
|
||||
Reference in New Issue
Block a user