Sha256: e65cb309fddcedd7f0c109289da3d8b1847fa58ce61152c9ac08a601397fc9e7

Contents?: true

Size: 592 Bytes

Versions: 44

Compression:

Stored size: 592 Bytes

Contents

#!/bin/python

import os
import json
import subprocess

deploy_dirs = '/opt/mu/var/deployments'
current_deploys = os.listdir(deploy_dirs)


def clean_all(list_of_deploy_ids):
  ## loop over current deploys and terminate them
    for each in list_of_deploy_ids:
        os.system('/opt/mu/bin/mu-cleanup %s' % each)



### sometimes, there is a weird file 'unique_ids' so delete if needed
if os.path.isfile(deploy_dirs+'/unique_ids'):
  os.system('rm -f %s/unique_ids' % deploy_dirs)

clean_all(current_deploys)
print ('**'*20)
print ('INFO: Cleanup up %s '%  current_deploys)
print ('**'*20)

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cloud-mu-3.1.1 test/clean_up.py
cloud-mu-3.1.0 test/clean_up.py
cloud-mu-3.0.2 test/clean_up.py
cloud-mu-3.0.1 test/clean_up.py
cloud-mu-3.0.0 test/clean_up.py
cloud-mu-3.0.0beta test/clean_up.py
cloud-mu-2.0.4 test/clean_up.py
cloud-mu-2.1.0beta test/clean_up.py
cloud-mu-2.0.3 test/clean_up.py
cloud-mu-2.0.2 test/clean_up.py
cloud-mu-2.0.1 test/clean_up.py
cloud-mu-2.0.0.pre.beta3 test/clean_up.py
cloud-mu-2.0.0.pre.beta2 test/clean_up.py
cloud-mu-2.0.0.pre.beta1 test/clean_up.py
cloud-mu-2.0.0.pre.alpha9 test/clean_up.py
cloud-mu-2.0.0.pre.alpha8 test/clean_up.py
cloud-mu-2.0.0.pre.alpha7 test/clean_up.py
cloud-mu-2.0.0.pre.alpha6 test/clean_up.py
cloud-mu-2.0.0.pre.alpha5 test/clean_up.py
cloud-mu-2.0.0.pre.alpha4 test/clean_up.py