Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Update docstrings for paas_app_charmer's base charm.py #8

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions paas_app_charmer/_gunicorn/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()
Loading