ejabberd v17.01.0 Ejabberd.Config.EjabberdModule

Module representing a module block in the configuration file. It offers functions for validation and for starting the modules.

Warning: The name is EjabberdModule to not collide with the already existing Elixir.Module.

Summary

Functions

Given a list of modules, it takes only the ones with a git attribute and tries to fetch the repo, then, it install them through :ext_mod.install/1

Given a list of modules / single module it runs different validators on them

Types

t()
t() :: %{module: atom, attrs: [Attr.t]}

Functions

fetch_git_repos(modules)
fetch_git_repos([Ejabberd.Config.EjabberdModule.t]) :: none

Given a list of modules, it takes only the ones with a git attribute and tries to fetch the repo, then, it install them through :ext_mod.install/1

validate(modules)

Given a list of modules / single module it runs different validators on them.

For each module, returns a {:ok, mod} or {:error, mod, errors}