Turn Aife into an application
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Liru 2019-05-06 15:36:04 -04:00
parent 213587a889
commit 0425add7f7
3 changed files with 17 additions and 5 deletions

15
lib/aife/application.ex Normal file
View File

@ -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

View File

@ -26,7 +26,8 @@ defmodule Aife.MixProject do
# Run "mix help compile.app" to learn about applications. # Run "mix help compile.app" to learn about applications.
def application do def application do
[ [
extra_applications: [:logger] extra_applications: [:logger],
mod: {Aife.Application, []}
] ]
end end

View File

@ -1,8 +1,4 @@
defmodule AifeTest do defmodule AifeTest do
use ExUnit.Case use ExUnit.Case
doctest Aife doctest Aife
test "greets the world" do
assert Aife.hello() == :world
end
end end