mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 13:02:51 +12:00
fixes #78
This commit is contained in:
parent
38de328d39
commit
6a86e2d5f6
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ defmodule Igniter.Project.Application do
|
|||
end)
|
||||
end
|
||||
|
||||
defp create_application_file(igniter, application) do
|
||||
def create_application_file(igniter, application) do
|
||||
path = Igniter.Code.Module.proper_location(application)
|
||||
supervisor = Igniter.Code.Module.module_name("Supervisor")
|
||||
|
||||
contents = """
|
||||
defmodule #{inspect(application)} do
|
||||
|
@ -108,7 +109,7 @@ defmodule Igniter.Project.Application do
|
|||
def start(_type, _args) do
|
||||
children = []
|
||||
|
||||
opts = [strategy: :one_for_one, name: Foo.Supervisor]
|
||||
opts = [strategy: :one_for_one, name: #{inspect(supervisor)}]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue