Turn Aife into an application
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
213587a889
commit
0425add7f7
|
|
@ -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
|
||||||
3
mix.exs
3
mix.exs
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue