Current section
Files
Jump to
Current section
Files
lib/grapple/hooksupervisor.ex
defmodule Grapple.HookSupervisor do
@moduledoc false
use Supervisor
def start_link(stash_pid) do
{:ok, _pid} = Supervisor.start_link(__MODULE__, stash_pid)
end
def init(stash_pid) do
child_processes = [worker(Grapple.Hook, [stash_pid])]
supervise child_processes, strategy: :one_for_one
end
end