colrev.env.environment_manager.EnvironmentManager
- class colrev.env.environment_manager.EnvironmentManager[source]
Bases:
objectThe EnvironmentManager manages environment resources and services.
Initialize the instance.
Methods
check_git_installedCheck whether git is installed.
get_curated_outletsGet the curated outlets.
get_environment_detailsGet the environment details.
get_name_mail_from_gitGet the committer name and email from git (globals).
get_settings_by_keyLoads setting by the given key.
load_environment_registryLoad the local registry.
local_reposGet local repositories from the local index.
register_portsRegister a localhost port to avoid conflicts.
register_repoRegister a repository.
save_environment_registrySave the local registry.
update_registryUpdates a given key in the registry with new value.
Attributes
load_yaml- classmethod get_name_mail_from_git()[source]
Get the committer name and email from git (globals).
- Return type:
Tuple[str,str]
- get_settings_by_key(key)[source]
Loads setting by the given key.
The registry is stored in /home/username/colrev/registry.json
- Return type:
Optional[str]