

def stop(self, provider='gce'):
    try:
        os.environ['KUBERNETES_PROVIDER'] = provider
        subprocess.check_call(['kube-down.sh'])
        cron = CronTab()
        jobs = cron.find_comment('binder-stop')
        for job in jobs:
            job.enable(False)
            cron.remove(job)
        cron.write_to_user(user=True)
    except subprocess.CalledProcessError as e:
        error_log(self.TAG, 'Could not destroy the Kubernetes cluster')

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager.stop/original