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