management.management.commands.startup_managerΒΆ

Example integration of startup strategies into managestartup command.

This file shows how to refactor the managestartup.py command to use the strategy pattern. Copy the relevant parts into managestartup.py to complete the refactoring.

Module ContentsΒΆ

class management.management.commands.startup_manager.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]ΒΆ

Bases: django.core.management.base.BaseCommand

A Django management command to check and update the Trustpoint version.

help = 'Updates app version'[source]ΒΆ
handle(**_options)[source]ΒΆ

Entrypoint for the command.

Parameters:

_options (dict[str, str])

Return type:

None

manage_startup()[source]ΒΆ

Checks current state of trustpoint and acts accordingly.

Return type:

None