colrev.env.environment_manager.EnvironmentManager¶
- class EnvironmentManager[source]¶
Bases:
object
The EnvironmentManager manages environment resources and services
Methods
Check whether git is installed
Get the curated outlets
Get the environment details
Get the committer name and email from git (globals)
Loads setting by the given key
Load the local registry.
Get local repositories from the local index.
Register a localhost port to avoid conflicts
Register a repository
Save the local registry.
Updates 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:
str
|None