Skip to content

Commit

Permalink
Merge pull request #4 from probably-not/master
Browse files Browse the repository at this point in the history
Allow App Name To Be Set And Trickle Down
  • Loading branch information
reachfh authored May 29, 2024
2 parents 19742f3 + be03951 commit 0b40eeb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/mix/tasks/systemd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ defmodule Mix.Tasks.Systemd do
@spec create_config(Keyword.t(), Keyword.t()) :: Keyword.t()
def create_config(mix_config, user_config) do

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (24, 1.13.4)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (24, 1.14.5)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (24, 1.15.7)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (24, 1.16.3)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (25, 1.13.4)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (25, 1.14.5)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (25, 1.15.7)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (25, 1.16.3)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (26, 1.14.5)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (26, 1.15.7)

Function is too complex (cyclomatic complexity is 23, max is 9).

Check warning on line 27 in lib/mix/tasks/systemd.ex

View workflow job for this annotation

GitHub Actions / Run tests (26, 1.16.3)

Function is too complex (cyclomatic complexity is 23, max is 9).
# Elixir app name, from mix.exs
app_name = mix_config[:app]
app_name =
cond do
not is_nil(mix_config[:app]) ->
mix_config[:app]

not is_nil(user_config[:app_name]) ->
user_config[:app_name]

is_nil(mix_config[:app]) and Mix.Project.umbrella?() ->
mix_config[:default_release] || Enum.at(mix_config[:releases], 0) |> elem(0)
end

# External name, used for files and directories
ext_name =
Expand Down

0 comments on commit 0b40eeb

Please sign in to comment.