Packages

Multi platform, multi app push notifications

Retired package: Deprecated - cartel is no longer maintained, you should switch to a different library

Current section

Files

Jump to
cartel lib cartel.ex
Raw

lib/cartel.ex

defmodule Cartel do
@moduledoc """
`Cartel` OTP Application
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
case Application.fetch_env(:cartel, :dealers) do
{:ok, dealers} -> Cartel.Supervisor.start_link(dealers)
_ -> Cartel.Supervisor.start_link([])
end
end
end