Files
traefik-helper/src/command/impl/restartCommand.py

10 lines
323 B
Python
Raw Normal View History

2024-04-17 02:24:45 +01:00
from command.command import Command
from traefik.traefikConfig import TraefikConfig
from utils.dockerUtils import restartTraefik
class RestartCommand(Command):
def __init__(self):
2024-04-17 02:31:19 +01:00
super().__init__("restart", "Restart traefik", "restart")
2024-04-17 02:24:45 +01:00
def execute(self, traefikConfig: TraefikConfig, args):
restartTraefik()