Skip to content

Commit

Permalink
style: mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jan 31, 2024
1 parent 702c8e7 commit 1c32ece
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/juggler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ defmodule Juggler do
case File.read(@juggles_file_path) do
{:ok, _} ->
Logger.info("#{@juggles_file_path} file already exists, doing nothing")

{:error, :enoent} ->
File.write(@juggles_file_path, @juggles_template)
Logger.info("Successfully created #{@juggles_file_path} file")
Expand All @@ -27,9 +28,11 @@ defmodule Juggler do
case Code.eval_string(contents) do
{%{} = map, _} ->
map

_ ->
raise "Couldn't find a map defining your juggles in #{@juggles_file_path} file"
end

{:error, :enoent} ->
raise "Couldn't find a #{@juggles_file_path} file"
end
Expand All @@ -53,7 +56,7 @@ defmodule Juggler do
Process.put(
:project,
Mix.Project.config()
|> Keyword.merge([
|> Keyword.merge(
app: name,
deps:
deps
Expand All @@ -67,7 +70,7 @@ defmodule Juggler do
lockfile: "#{@juggler_dir}/#{name}.mix.lock",
build_path: "#{@juggler_dir}/_build/#{name}",
deps_path: "#{@juggler_dir}/deps/#{name}"
])
)
)

:ok = Mix.Project.push(TempApp)
Expand Down

0 comments on commit 1c32ece

Please sign in to comment.