runway.env_mgr package¶
Base module for environment managers.
- class runway.env_mgr.EnvManager[source]¶
Bases:
DelCachedPropMixinBase environment manager class.
- binPath to the binary of the current version.
- env_dir_name¶
Name of the directory within the users home directory where binary versions will be stored.
- Type:
- path¶
The current working directory.
- Type:
- __init__(bin_name: str, dir_name: str, path: Path | None = None) None[source]¶
Initialize class.
- Parameters:
bin_name – Name of the binary file (e.g. terraform)
dir_name – Name of the directory within the users home directory where binary versions will be stored.
path – The current working directory.
- uninstall(version: str | Version) bool[source]¶
Uninstall a version of the managed binary.
- Parameters:
version – Version of binary to uninstall.
- Returns:
Whether a version of the binary was uninstalled or not.
- runway.env_mgr.handle_bin_download_error(exc: URLError, name: str) None[source]¶
Give user info about their failed download.
- Raises:
SystemExit – Always raised after logging reason.
Submodules¶
- runway.env_mgr.tfenv module
TFEnvManagerTFEnvManager.__init__()TFEnvManager.backendTFEnvManager.get_min_required()TFEnvManager.get_version_from_executable()TFEnvManager.get_version_from_file()TFEnvManager.install()TFEnvManager.list_installed()TFEnvManager.parse_version_string()TFEnvManager.set_version()TFEnvManager.terraform_blockTFEnvManager.versionTFEnvManager.version_file
download_tf_release()get_available_tf_versions()get_latest_tf_version()load_terraform_module()