Skip to content

Commit 673adcf

Browse files
committed
Change order of app.json parsing
1 parent 805a4b1 commit 673adcf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ erl_crash.dump
1515

1616
# Also ignore archive artifacts (built via "mix archive.build").
1717
*.ez
18+
19+
# Ignore the built escript file
20+
app_bootstrap

app_bootstrap

-2.6 MB
Binary file not shown.

lib/app_bootstrap.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ defmodule AppBootstrap do
102102
@spec get_value(String.t, map) :: String.t
103103
defp get_value(key, descriptor) do
104104
case descriptor do
105-
%{"development_required" => false} -> ""
106-
%{"required" => false} -> ""
107105
%{"development_value" => value} -> value
108106
%{"value" => value} -> value
107+
%{"development_required" => false} -> ""
108+
%{"required" => false} -> ""
109109
%{"description" => description} ->
110110
IO.puts ~s(Provide a value for "#{key}":)
111111
IO.puts ~s("#{description}")

0 commit comments

Comments
 (0)