(cls, name)
| 77 | |
| 78 | @classmethod |
| 79 | def load_context(cls, name): |
| 80 | meta = Context._load_meta(name) |
| 81 | if meta: |
| 82 | instance = cls( |
| 83 | meta["Name"], |
| 84 | orchestrator=meta["Metadata"].get("StackOrchestrator", None), |
| 85 | endpoints=meta.get("Endpoints", None)) |
| 86 | instance.context_type = meta["Metadata"].get("Type", None) |
| 87 | instance._load_certs() |
| 88 | instance.meta_path = get_meta_dir(name) |
| 89 | return instance |
| 90 | return None |
| 91 | |
| 92 | @classmethod |
| 93 | def _load_meta(cls, name): |
no test coverage detected