Mising docstrings
This commit is contained in:
parent
3456e1a899
commit
2b3a702f21
|
@ -107,6 +107,7 @@ class Container:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def volume_backup_enabled(self) -> bool:
|
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'))
|
return utils.is_true(self.get_label('restic-compose-backup.volumes'))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -120,14 +121,17 @@ class Container:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mysql_backup_enabled(self) -> bool:
|
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'))
|
return utils.is_true(self.get_label('restic-compose-backup.mysql'))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mariadb_backup_enabled(self) -> bool:
|
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'))
|
return utils.is_true(self.get_label('restic-compose-backup.mariadb'))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def postgresql_backup_enabled(self) -> bool:
|
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'))
|
return utils.is_true(self.get_label('restic-compose-backup.postgres'))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -358,6 +362,7 @@ class RunningContainers:
|
||||||
return mounts
|
return mounts
|
||||||
|
|
||||||
def get_service(self, name) -> Container:
|
def get_service(self, name) -> Container:
|
||||||
|
"""Container: Get a service by name"""
|
||||||
for container in self.containers:
|
for container in self.containers:
|
||||||
if container.service_name == name:
|
if container.service_name == name:
|
||||||
return container
|
return container
|
||||||
|
|
Loading…
Reference in New Issue