diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-19 22:39:34 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-19 22:39:34 +0300 |
commit | fc0d31c58a95c1c64d972b0d75eaf38bb09f2308 (patch) | |
tree | 66cf9e83509e2f33c0640985332c33c04f916084 /ick2 | |
parent | f11a8ecd409f280759af7227db52b1e87e389092 (diff) | |
download | ick2-fc0d31c58a95c1c64d972b0d75eaf38bb09f2308.tar.gz |
Drop: pipeline instances
Diffstat (limited to 'ick2')
-rw-r--r-- | ick2/__init__.py | 1 | ||||
-rw-r--r-- | ick2/state.py | 21 |
2 files changed, 0 insertions, 22 deletions
diff --git a/ick2/__init__.py b/ick2/__init__.py index 6884c16..8b784c9 100644 --- a/ick2/__init__.py +++ b/ick2/__init__.py @@ -21,7 +21,6 @@ from .state import ( WrongProjectStatus, Workers, Projects, - PipelineInstances, ProjectStatus, Builds, ) diff --git a/ick2/state.py b/ick2/state.py index 40dcfe8..12b38ba 100644 --- a/ick2/state.py +++ b/ick2/state.py @@ -183,27 +183,6 @@ class Builds(ResourceStore): # pragma: no cover self.update(build) -class PipelineInstances(ResourceStore): # pragma: no cover - - def __init__(self, state): - super().__init__(state, 'pipeline_instances', 'pipeline') - - def _name(self, project_name, pipeline_name): - return '{} {}'.format(project_name, pipeline_name) - - def get_instance(self, project_name, pipeline_name): - name = self._name(project_name, pipeline_name) - return self.get(name) - - def add_instance(self, project_name, pipeline_name, instance): - name = self._name(project_name, pipeline_name) - self.add(name, instance) - - def update_instance(self, project_name, pipeline_name, instance): - name = self._name(project_name, pipeline_name) - self.add(name, instance) - - class ProjectStatus(ResourceStore): # pragma: no cover def __init__(self, state): |