From 46895d0b089f57be6d2281aa40a21f8b5b20df9b Mon Sep 17 00:00:00 2001 From: dhh Date: Sat, 16 Sep 2023 10:11:42 -0700 Subject: [PATCH] Better ordering and spacing --- lib/kamal/commander.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/kamal/commander.rb b/lib/kamal/commander.rb index a98ac2b54..92717b103 100644 --- a/lib/kamal/commander.rb +++ b/lib/kamal/commander.rb @@ -51,14 +51,6 @@ def hosts end end - def boot_strategy - if config.boot.limit.present? - { in: :groups, limit: config.boot.limit, wait: config.boot.wait } - else - {} - end - end - def roles_on(host) roles.select { |role| role.hosts.include?(host.to_s) }.map(&:name) end @@ -128,6 +120,7 @@ def traefik @traefik ||= Kamal::Commands::Traefik.new(config) end + def with_verbosity(level) old_level = self.verbosity @@ -140,6 +133,14 @@ def with_verbosity(level) SSHKit.config.output_verbosity = old_level end + def boot_strategy + if config.boot.limit.present? + { in: :groups, limit: config.boot.limit, wait: config.boot.wait } + else + {} + end + end + def holding_lock? self.holding_lock end