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