errbot.repo_manager module¶
-
class
errbot.repo_manager.
BotRepoManager
(storage_plugin, plugin_dir, plugin_indexes)[source]¶ Bases:
errbot.storage.StoreMixin
Manages the repo list, git clones/updates or the repos.
-
__init__
(storage_plugin, plugin_dir, plugin_indexes)[source]¶ Make a repo manager. :param storage_plugin: where the manager store its state. :param plugin_dir: where on disk it will git clone the repos. :param plugin_indexes: a list of URL / path to get the json repo index.
-
get_repo_from_index
(repo_name)[source]¶ Retrieve the list of plugins for the repo_name from the index.
Parameters: repo_name – the name of hte repo Returns: a list of RepoEntry
-
install_repo
(repo)[source]¶ Install the repository from repo
Parameters: repo – - The url, git url or path on disk of a repository. It can point to either a git repo or
- a .tar.gz of a plugin
Returns: The path on disk where the repo has been installed on. Raises: RepoException
if an error occured.
-
-
class
errbot.repo_manager.
RepoEntry
(entry_name, name, python, repo, path, avatar_url, documentation)¶ Bases:
tuple
-
avatar_url
¶ Alias for field number 5
-
documentation
¶ Alias for field number 6
-
entry_name
¶ Alias for field number 0
-
name
¶ Alias for field number 1
-
path
¶ Alias for field number 4
-
python
¶ Alias for field number 2
-
repo
¶ Alias for field number 3
-
Previous: errbot.plugin_wizard module
|
Next: errbot.specific_plugin_manager module