diff --git a/lib/bootleg/tasks/build/local.exs b/lib/bootleg/tasks/build/local.exs index c06ab43..9bc670b 100644 --- a/lib/bootleg/tasks/build/local.exs +++ b/lib/bootleg/tasks/build/local.exs @@ -14,6 +14,7 @@ task :local_build_upgrade do {:release_args, []} |> config() |> Kernel.++(["--upgrade"]) + config(:release_args, new_args) invoke(:local_copy_release) diff --git a/lib/bootleg/tasks/build/remote.exs b/lib/bootleg/tasks/build/remote.exs index db6f214..9fdee80 100644 --- a/lib/bootleg/tasks/build/remote.exs +++ b/lib/bootleg/tasks/build/remote.exs @@ -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 @@ -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 @@ -117,6 +119,7 @@ task :clean_all do if locations != "" do UI.info("Cleaning locations: #{locations}") + remote :build do "rm -rf #{locations}" end @@ -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) diff --git a/lib/bootleg/tasks/hot_upgrade.exs b/lib/bootleg/tasks/hot_upgrade.exs index 6cd9739..b782d6f 100644 --- a/lib/bootleg/tasks/hot_upgrade.exs +++ b/lib/bootleg/tasks/hot_upgrade.exs @@ -10,4 +10,3 @@ task :hot_upgrade do "bin/#{app_name} upgrade #{Config.version()}" end end -