diff --git a/lib/aife/application.ex b/lib/aife/application.ex new file mode 100644 index 0000000..1b06d7d --- /dev/null +++ b/lib/aife/application.ex @@ -0,0 +1,15 @@ +defmodule Aife.Application do + @moduledoc false + + use Application + + def start(_, _) do + children = [ + Aife.Drone.Supervisor + ] + + opts = [strategy: :one_for_one, name: Aife.Supervisor] + + Supervisor.start_link(children, opts) + end +end diff --git a/mix.exs b/mix.exs index 0d62eb9..3d1760f 100644 --- a/mix.exs +++ b/mix.exs @@ -26,7 +26,8 @@ defmodule Aife.MixProject do # Run "mix help compile.app" to learn about applications. def application do [ - extra_applications: [:logger] + extra_applications: [:logger], + mod: {Aife.Application, []} ] end diff --git a/test/aife_test.exs b/test/aife_test.exs index 62ca655..9a5a76d 100644 --- a/test/aife_test.exs +++ b/test/aife_test.exs @@ -1,8 +1,4 @@ defmodule AifeTest do use ExUnit.Case doctest Aife - - test "greets the world" do - assert Aife.hello() == :world - end end