def __init__()

in terranova/binds.py [0:0]


    def __init__(self, work_dir: Path, variables: dict[str, str] | None = None) -> None:
        """Init terraform bind."""
        try:
            super().__init__(cmd=Command("terraform"))
        except CommandNotFound as err:
            Log.fatal("detect terraform binary", err)

        try:
            SharedContext.terraform_shared_plugin_cache_dir().mkdir(
                parents=True, exist_ok=True
            )
        except OSError as err:
            Log.fatal("create terraform cache directory", err)

        self.__work_dir = work_dir
        self.__variables = variables