Methods
-
<async> addRepository( repository [, append ] ) → {Promise.<boolean>}
-
Description
Adds a repository.
If append is set to true, the new repository will be added with the lowest priority, i.e. plugins will only be loaded from it they can't be found in any other repository. Otherwise the repository will be added with the highest priority.
Parameters
Name Type Attributes Description repositoryRepository The repository to be added.
appendboolean <optional> Whether to append or prepend the repository to the Array of repositories.
Returns
Details
-
<async> setRepositories( repository ) → {Promise}
-
Description
Sets the repositories.
Overwrites all repositories with the given array of repositories. Adds saviolas default repository if its not defined in the given array.
Parameters
Name Type Description repositoryArray.<Repository> The repository to be added.
Returns
Details
-
<async> hasRepository( repository ) → {boolean}
-
Description
Returns whether the given repository already exists. Repositories are considered equal if their configuration is the same.
Parameters
Name Type Description repositoryRepository Repository config.
Returns
Details
-
<async> getRepositories() → {Array.<Repository>}
-
Description
Returns available repositories.
Returns
Details
-
<async> getRepositoryInformation( repository ) → {RepositoryData}
-
Description
Retrieves information about the given repository.
The information is loaded from repositorys
repository.jsonconfig file.Parameters
Name Type Description repositoryRepository The repository that you want to get information from.
Returns
Details