Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Adams committed Aug 10, 2019
1 parent 04bdb8d commit 159cfa5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/bootleg/tasks/build/local.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ task :local_build_upgrade do
{:release_args, []}
|> config()
|> Kernel.++(["--upgrade"])

config(:release_args, new_args)

invoke(:local_copy_release)
Expand Down
10 changes: 7 additions & 3 deletions lib/bootleg/tasks/build/remote.exs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,15 @@ task :clean do
clean_exclude = config({:clean_ignore, []})

case clean_exclude == [] do
true -> invoke :clean_all
false -> invoke :clean_except
true -> invoke(:clean_all)
false -> invoke(:clean_except)
end
end

task :clean_except do
clean_exclude = config({:clean_ignore, []})
source_path = config({:ex_path, ""})

remote :build, cd: source_path do
"ls"
end
Expand All @@ -99,7 +100,8 @@ task :clean_except do
|> Enum.join(" ")

if locations != "" do
UI.info("Cleaning locations: #{IO.inspect locations}")
UI.info("Cleaning locations: #{locations}")

remote :build do
"rm -rf #{locations}"
end
Expand All @@ -117,6 +119,7 @@ task :clean_all do

if locations != "" do
UI.info("Cleaning locations: #{locations}")

remote :build do
"rm -rf #{locations}"
end
Expand Down Expand Up @@ -336,6 +339,7 @@ task :remote_build_upgrade do
{:clean_ignore, []}
|> config()
|> Kernel.++(["_build"])

config(:clean_ignore, clean_exclude)

build_role = Config.get_role(:build)
Expand Down
1 change: 0 additions & 1 deletion lib/bootleg/tasks/hot_upgrade.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ task :hot_upgrade do
"bin/#{app_name} upgrade #{Config.version()}"
end
end

0 comments on commit 159cfa5

Please sign in to comment.