Skip to content

Commit

Permalink
Render name in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Dec 29, 2023
1 parent 0e1a7cc commit b0a5030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions lib/pakman/bootstrap.ex
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ defmodule Pakman.Bootstrap do
|> File.write!(Templates.hook(content))
end

defp create_file(base_path, name, :environment = type) do
file_type = generate_file_type(type)

[base_path, "#{name}.#{file_type}"]
|> Path.join()
|> File.write!(Templates.environment())
end

defp create_file(base_path, name, type) do
file_type = generate_file_type(type)

Expand Down
3 changes: 2 additions & 1 deletion lib/pakman/bootstrap/templates.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ defmodule Pakman.Bootstrap.Templates do
EEx.function_from_file(
:def,
:environment,
Path.join(@prefix, "environment.eex")
Path.join(@prefix, "environment.eex"),
[:name]
)

EEx.function_from_file(
Expand Down

0 comments on commit b0a5030

Please sign in to comment.