summaryrefslogtreecommitdiff
path: root/ick2/controllerapi.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-18 20:37:53 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-18 20:37:53 +0100
commit4e45654544c65741de49f2929664de84a76712e0 (patch)
tree8822e6132f239ec187cd9aeca4447aeeb906e8f8 /ick2/controllerapi.py
parent792c059b9997b9e98ee12b6105b778b6d5a9e0ca (diff)
downloadick2-4e45654544c65741de49f2929664de84a76712e0.tar.gz
Refactor: move WorkerAPI to its own module
Diffstat (limited to 'ick2/controllerapi.py')
-rw-r--r--ick2/controllerapi.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/ick2/controllerapi.py b/ick2/controllerapi.py
index 49c972b..62b7056 100644
--- a/ick2/controllerapi.py
+++ b/ick2/controllerapi.py
@@ -34,7 +34,7 @@ class ControllerAPI:
'/logs': LogAPI,
'/projects': ProjectAPI,
'/work': WorkAPI,
- '/workers': WorkerAPI,
+ '/workers': ick2.WorkerAPI,
}
routes = []
@@ -46,15 +46,6 @@ class ControllerAPI:
return routes
-class WorkerAPI(ick2.ResourceApiBase): # pragma: no cover
-
- def __init__(self, state):
- super().__init__('workers', state)
-
- def get_resource_name(self, resource):
- return resource['worker']
-
-
class BuildsAPI(ick2.ResourceApiBase): # pragma: no cover
def __init__(self, state):