provider
dev_tool.services.execution.provider
ExecutionStrategyProvider
A provider class for managing the singleton ExecutionStrategy instance.
This class centralizes strategy creation to avoid duplicate logic scattered across multiple services.
configure
classmethod
A method that configures the provider with required dependencies.
Parameters:
-
docker_service(DockerServiceProtocol) –The Docker service for container management.
Source code in dev_tool/services/execution/provider.py
get
classmethod
A method that returns the singleton ExecutionStrategy instance.
Returns:
-
ExecutionStrategy–The ExecutionStrategy instance.
Source code in dev_tool/services/execution/provider.py
is_containerized
classmethod
A method that checks if the current strategy is containerized.
Returns:
-
bool–True if containerized, False otherwise.