Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Pass orelse Raise decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad While CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Break handlers ExceptHandler type NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str BinOpMod Str TupleLoad NameLoad Str BinOpMod Str TupleLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Raise Call AttributeLoad NameLoad attr NameLoad NameLoad Return Num decorator_list
N/A __future__ print_function N/A datetime N/A errno N/A os N/A pwd N/A shutil N/A subprocess N/A sys N/A time N/A DEPLOYMENTS_DIR /home/zulip/deployments N/A LOCK_DIR N/A N/A N/A os path join DEPLOYMENTS_DIR lock N/A TIMESTAMP_FORMAT %Y-%m-%d-%H-%M-%S N/A OKBLUE [94m N/A OKGREEN [92m N/A WARNING [93m N/A FAIL [91m N/A ENDC [0m su_to_zulip N/A N/A N/A N/A N/A pwent N/A N/A pwd getpwnam zulip N/A N/A N/A os setgid N/A pwent pw_gid N/A N/A N/A os setuid N/A pwent pw_uid N/A make_deploy_path N/A N/A N/A N/A N/A timestamp N/A N/A N/A N/A N/A datetime datetime now strftime TIMESTAMP_FORMAT N/A N/A N/A N/A os path join DEPLOYMENTS_DIR timestamp N/A N/A N/A __name__ __main__ N/A N/A cmd N/A N/A sys argv N/A 1 N/A N/A cmd make_deploy_path N/A N/A N/A print N/A make_deploy_path mkdir_p N/A N/A path N/A N/A N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A e N/A N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A N/A os path isdir path N/A N/A N/A N/A N/A get_deployment_lock N/A N/A error_rerun_script N/A N/A N/A start_time N/A N/A time time N/A got_lock False N/A N/A N/A N/A N/A time time start_time 300 N/A N/A N/A N/A N/A N/A os mkdir LOCK_DIR N/A got_lock True N/A N/A N/A N/A OSError N/A N/A N/A print N/A N/A WARNING N/A Another deployment in progress; waiting for lock... (If no deployment is running, rmdir %s) N/A LOCK_DIR ENDC N/A N/A N/A N/A sys stdout flush N/A N/A N/A time sleep 3 N/A N/A got_lock N/A N/A N/A print N/A N/A N/A N/A N/A N/A FAIL Deployment already in progress.  Please run
 N/A   %s
 N/A error_rerun_script manually when the previous deployment finishes, or run
 N/A   rmdir %s
 N/A LOCK_DIR if the previous deployment crashed. ENDC N/A N/A N/A sys exit 1 N/A release_deployment_lock N/A N/A N/A N/A N/A N/A N/A shutil rmtree LOCK_DIR N/A run N/A N/A args N/A N/A N/A N/A print N/A + %s N/A N/A join args N/A process N/A N/A subprocess Popen args N/A rc N/A N/A process wait N/A rc N/A N/A N/A N/A subprocess CalledProcessError rc args N/A 0 N/A