(self)
| 300 | self._daemon_process.kill() |
| 301 | |
| 302 | def destroy(self): |
| 303 | status = self.get_status() |
| 304 | if status == 'stopped' or status == 'not-initialized': |
| 305 | shutil.rmtree(self._data_dir) |
| 306 | else: |
| 307 | raise ClusterError('cannot destroy {} cluster'.format(status)) |
| 308 | |
| 309 | def _get_connection_spec(self): |
| 310 | if self._connection_addr is None: |
no test coverage detected