Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/multivisor/service.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from daiquiri.core.hardware.abstract import HardwareProperty
4from daiquiri.core.hardware.abstract.service import Service as AbstractService
5from daiquiri.core.hardware.multivisor.object import MultivisorObject
7import logging
9logger = logging.getLogger(__name__)
12class Service(MultivisorObject, AbstractService):
13 PROPERTY_MAP = {
14 "state": HardwareProperty("state"),
15 }
16 CALLABLE_MAP = {"start": "start", "stop": "stop", "restart": "restart"}