Only use barrier when needed, more descriptive info

This commit is contained in:
Donal McBreen
2024-05-20 12:17:01 +01:00
parent bb2ca81d87
commit ee758d951a
4 changed files with 18 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ class Kamal::Cli::App < Kamal::Cli::Base
end
#  Primary hosts and roles are returned first, so they can open the barrier
barrier = Kamal::Cli::Healthcheck::Barrier.new
barrier = Kamal::Cli::Healthcheck::Barrier.new if KAMAL.roles.many?
on(KAMAL.hosts, **KAMAL.boot_strategy) do |host|
KAMAL.roles_on(host).each do |role|