

def deploy_app(self, app_id, app_dir):
    success = True
    success = self._create(os.path.join(app_dir, 'namespace.json'))
    for f in os.listdir(app_dir):
        if (f != 'namespace.json'):
            path = os.path.join(app_dir, f)
            success = (success and self._create(path, namespace=app_id))
            if (not success):
                error_log(self.TAG, 'Could not deploy {0} on Kubernetes cluster'.format(path))
    success = (success and self._register_proxy_route(app_id))
    if (not success):
        error_log(self.TAG, 'Could not deploy {} on Kubernetes cluster'.format(path))
        return None
    lookup_url = self._get_lookup_url()
    app_url = urljoin(('https://' + lookup_url), app_id)
    info_log(app_url.TAG, 'Access app at: \n   {}'.format(app_url))
    return app_url

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager.deploy_app/VarMisuse@174/259 `self`->`app_url`