mirror of https://github.com/zulip/zulip.git
Rename humbug_tools to zulip_tools.
(imported from commit 7f21fdc2c2d6ad0bdbd99eb616ffc75c347d8dcb)
This commit is contained in:
parent
4c8fdec554
commit
130d381302
|
@ -8,7 +8,7 @@ from collections import defaultdict
|
||||||
from os import path, environ
|
from os import path, environ
|
||||||
|
|
||||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
||||||
from humbug_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
states = {
|
states = {
|
||||||
0: "OK",
|
0: "OK",
|
||||||
|
|
|
@ -7,7 +7,7 @@ import time
|
||||||
from os import path, environ
|
from os import path, environ
|
||||||
|
|
||||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
||||||
from humbug_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
WARN_THRESHOLD = 50
|
WARN_THRESHOLD = 50
|
||||||
CRIT_THRESHOLD = 100
|
CRIT_THRESHOLD = 100
|
||||||
|
|
|
@ -8,7 +8,7 @@ import subprocess
|
||||||
from os import path
|
from os import path
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from humbug_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
parser = optparse.OptionParser()
|
parser = optparse.OptionParser()
|
||||||
parser.add_option('--full',
|
parser.add_option('--full',
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
from humbug_tools import check_output, ENDC, FAIL
|
from zulip_tools import check_output, ENDC, FAIL
|
||||||
|
|
||||||
def update_deployment(server, refname):
|
def update_deployment(server, refname):
|
||||||
return subprocess.call(["ssh", server, "--", "env", "-u", "GIT_DIR",
|
return subprocess.call(["ssh", server, "--", "env", "-u", "GIT_DIR",
|
||||||
|
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import logging
|
import logging
|
||||||
import datetime
|
import datetime
|
||||||
import shutil
|
import shutil
|
||||||
from humbug_tools import DEPLOYMENTS_DIR, TIMESTAMP_FORMAT
|
from zulip_tools import DEPLOYMENTS_DIR, TIMESTAMP_FORMAT
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s purge-deployments: %(message)s",
|
logging.basicConfig(format="%(asctime)s purge-deployments: %(message)s",
|
||||||
level=logging.INFO)
|
level=logging.INFO)
|
||||||
|
|
|
@ -5,7 +5,7 @@ import pwd
|
||||||
import subprocess
|
import subprocess
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from humbug_tools import ENDC, OKGREEN, DEPLOYMENTS_DIR
|
from zulip_tools import ENDC, OKGREEN, DEPLOYMENTS_DIR
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
||||||
level=logging.INFO)
|
level=logging.INFO)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
import logging
|
import logging
|
||||||
from humbug_tools import DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, WARNING, ENDC
|
from zulip_tools import DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, WARNING, ENDC
|
||||||
import datetime
|
import datetime
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in New Issue