Current section

Files

Jump to
maru lib maru supervisor.ex
Raw

lib/maru/supervisor.ex

defmodule Maru.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
# Application.ensure_all_started :plug
# for {module, options} <- Maru.Config.plugs do
# Plug.Adapters.Cowboy.http module, [], [port: options[:port]]
# end
# Maru.Supervisor.start_link
def init([]) do
# for {module, options} <- Maru.Config.plugs do
# Plug.Adapters.Cowboy.child_spec :http, module, [], [port: options[:port]]
# end |> IO.inspect |> supervise(strategy: :one_for_one)
children = [ ]
supervise(children, strategy: :one_for_one)
end
end