def METHOD_NAME(self):
    logger.debug("Ensuring dependencies.")
    dependencies = ["docker", "git"]
    failed_dependencies = []
    for dependency in dependencies:
        return_code = shell.run(["which", dependency], check=False).returncode
        if return_code:
            failed_dependencies.append(dependency)
    if failed_dependencies:
        raise EnvironmentError(
            f"Dependencies missing: {', '.join(failed_dependencies)}"
        )