From 2b3a702f21faac3a1217db3e9da3a6f8e27afc01 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Sat, 7 Dec 2019 09:19:16 +0100 Subject: [PATCH] Mising docstrings --- src/restic_compose_backup/containers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/restic_compose_backup/containers.py b/src/restic_compose_backup/containers.py index d54c9dc..619d2cc 100644 --- a/src/restic_compose_backup/containers.py +++ b/src/restic_compose_backup/containers.py @@ -107,6 +107,7 @@ class Container: @property def volume_backup_enabled(self) -> bool: + """bool: If the ``restic-compose-backup.volumes`` label is set""" return utils.is_true(self.get_label('restic-compose-backup.volumes')) @property @@ -120,14 +121,17 @@ class Container: @property def mysql_backup_enabled(self) -> bool: + """bool: If the ``restic-compose-backup.mysql`` label is set""" return utils.is_true(self.get_label('restic-compose-backup.mysql')) @property def mariadb_backup_enabled(self) -> bool: + """bool: If the ``restic-compose-backup.mariadb`` label is set""" return utils.is_true(self.get_label('restic-compose-backup.mariadb')) @property def postgresql_backup_enabled(self) -> bool: + """bool: If the ``restic-compose-backup.postgres`` label is set""" return utils.is_true(self.get_label('restic-compose-backup.postgres')) @property @@ -358,6 +362,7 @@ class RunningContainers: return mounts def get_service(self, name) -> Container: + """Container: Get a service by name""" for container in self.containers: if container.service_name == name: return container