Skip to content

Commit 89eb898

Browse files
authored
chore: Fix igniter deprecation warnings. (#94)
1 parent fa22092 commit 89eb898

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/mix/tasks/ash_sqlite.install.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Mix.Tasks.AshSqlite.Install do
2424
repo =
2525
case opts[:repo] do
2626
nil ->
27-
Igniter.Code.Module.module_name(igniter, "Repo")
27+
Igniter.Project.Module.module_name(igniter, "Repo")
2828

2929
repo ->
3030
Igniter.Code.Module.parse(repo)
@@ -265,7 +265,7 @@ defmodule Mix.Tasks.AshSqlite.Install do
265265
end
266266

267267
defp setup_data_case(igniter) do
268-
module_name = Igniter.Code.Module.module_name(igniter, "DataCase")
268+
module_name = Igniter.Project.Module.module_name(igniter, "DataCase")
269269

270270
default_data_case_contents = ~s|
271271
@moduledoc """
@@ -287,24 +287,24 @@ defmodule Mix.Tasks.AshSqlite.Install do
287287
288288
using do
289289
quote do
290-
alias #{inspect(Igniter.Code.Module.module_name(igniter, "Repo"))}
290+
alias #{inspect(Igniter.Project.Module.module_name(igniter, "Repo"))}
291291
292292
import Ecto
293293
import Ecto.Changeset
294294
import Ecto.Query
295-
import #{inspect(Igniter.Code.Module.module_name(igniter, "DataCase"))}
295+
import #{inspect(Igniter.Project.Module.module_name(igniter, "DataCase"))}
296296
end
297297
end
298298
299299
setup tags do
300-
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(#{inspect(Igniter.Code.Module.module_name(igniter, "Repo"))}, shared: not tags[:async])
300+
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(#{inspect(Igniter.Project.Module.module_name(igniter, "Repo"))}, shared: not tags[:async])
301301
on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
302302
:ok
303303
end
304304
|
305305

306306
igniter
307-
|> Igniter.Code.Module.find_and_update_or_create_module(
307+
|> Igniter.Project.Module.find_and_update_or_create_module(
308308
module_name,
309309
default_data_case_contents,
310310
# do nothing if already exists
@@ -319,7 +319,7 @@ defmodule Mix.Tasks.AshSqlite.Install do
319319
use AshSqlite.Repo, otp_app: #{inspect(otp_app)}
320320
"""
321321

322-
Igniter.Code.Module.find_and_update_or_create_module(
322+
Igniter.Project.Module.find_and_update_or_create_module(
323323
igniter,
324324
repo,
325325
default_repo_contents,

0 commit comments

Comments
 (0)