Current section

Files

Jump to
ex_checkout lib application.ex
Raw

lib/application.ex

defmodule ExCheckout.Application do
@moduledoc false
use Application
@name __MODULE__
def start(_, _args) do
children = [
ExCheckout.Registry,
{DynamicSupervisor, strategy: :one_for_one, name: ExCheckout.Checkout.Supervisor}
]
opts = [
strategy: :one_for_one,
name: @name
]
Supervisor.start_link(children, opts)
end
@version Mix.Project.config()[:version]
def version, do: @version
end