From 292b94f65fe70c55ebb52f40d05837cec788914e Mon Sep 17 00:00:00 2001 From: Tom Haddon Date: Wed, 10 Apr 2024 14:38:13 +0200 Subject: [PATCH] Update docstrings for paas_app_charmer's base charm.py --- paas_app_charmer/_gunicorn/charm.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/paas_app_charmer/_gunicorn/charm.py b/paas_app_charmer/_gunicorn/charm.py index ff8ba4f..82ea081 100644 --- a/paas_app_charmer/_gunicorn/charm.py +++ b/paas_app_charmer/_gunicorn/charm.py @@ -130,7 +130,7 @@ def __init__(self, framework: ops.Framework, wsgi_framework: str) -> None: ) def _on_config_changed(self, _event: ops.EventBase) -> None: - """Configure the flask pebble service layer. + """Configure the application pebble service layer. Args: _event: the config-changed event that triggers this callback function. @@ -206,41 +206,41 @@ def _on_update_status(self, _: ops.HookEvent) -> None: self.restart() def _on_mysql_database_database_created(self, _event: DatabaseRequiresEvent) -> None: - """Handle the mysql's database-created event.""" + """Handle mysql's database-created event.""" self.restart() def _on_mysql_database_endpoints_changed(self, _event: DatabaseRequiresEvent) -> None: - """Handle the mysql's endpoints-changed event.""" + """Handle mysql's endpoints-changed event.""" self.restart() def _on_mysql_database_relation_broken(self, _event: ops.RelationBrokenEvent) -> None: - """Handle the mysql's relation-broken event.""" + """Handle mysql's relation-broken event.""" self.restart() def _on_postgresql_database_database_created(self, _event: DatabaseRequiresEvent) -> None: - """Handle the postgresql's database-created event.""" + """Handle postgresql's database-created event.""" self.restart() def _on_postgresql_database_endpoints_changed(self, _event: DatabaseRequiresEvent) -> None: - """Handle the mysql's endpoints-changed event.""" + """Handle mysql's endpoints-changed event.""" self.restart() def _on_postgresql_database_relation_broken(self, _event: ops.RelationBrokenEvent) -> None: - """Handle the postgresql's relation-broken event.""" + """Handle postgresql's relation-broken event.""" self.restart() def _on_mongodb_database_database_created(self, _event: DatabaseRequiresEvent) -> None: - """Handle the mongodb's database-created event.""" + """Handle mongodb's database-created event.""" self.restart() def _on_mongodb_database_endpoints_changed(self, _event: DatabaseRequiresEvent) -> None: - """Handle the mysql's endpoints-changed event.""" + """Handle mysql's endpoints-changed event.""" self.restart() def _on_mongodb_database_relation_broken(self, _event: ops.RelationBrokenEvent) -> None: - """Handle the postgresql's relation-broken event.""" + """Handle postgresql's relation-broken event.""" self.restart() def _on_redis_relation_updated(self, _event: DatabaseRequiresEvent) -> None: - """Handle the redis's database-created event.""" + """Handle redis's database-created event.""" self.restart()