Packages
mishka_installer
0.1.0-alpha.2
Mishka Installer is a system plugin manager and run time installer for elixir.
Current section
Files
Jump to
Current section
Files
lib/application.ex
defmodule MishkaInstaller.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children =
[
{Phoenix.PubSub, name: MishkaInstaller.PubSub}
] ++ supervised_children()
opts = [strategy: :one_for_one, name: MishkaInstaller.Supervisor]
Supervisor.start_link(children, opts)
end
if MishkaInstaller.__information__().env == :test do
def supervised_children() do
[]
end
else
def supervised_children() do
[
MishkaInstaller.Installer.CompileHandler,
MishkaInstaller.Event.EventHandler,
MishkaInstaller.MnesiaRepo
]
end
end
end