Current section

Files

Jump to
guard lib guard pusher supervisor.ex
Raw

lib/guard/pusher/supervisor.ex

defmodule Guard.Pusher.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
worker(Guard.Pusher.Server, [Guard.Pusher.Server])
]
supervise(children, strategy: :one_for_one)
end
end