Packages

Elixir ACL library for managing user abilities and permissions with support of ecto(uuid) and compatibility with absinthe

Current section

Files

Jump to
terminator_uuid lib terminator application.ex
Raw

lib/terminator/application.ex

defmodule Terminator.UUID.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Terminator.UUID.Registry, [])
]
children = children ++ load_repos()
opts = [strategy: :one_for_one, name: Terminator.UUID.Supervisor]
Supervisor.start_link(children, opts)
end
defp load_repos do
case Application.get_env(:terminator, :ecto_repos) do
nil -> [Terminator.UUID.Repo]
repos -> repos
end
end
end