diff --git a/lib/kamal/commander.rb b/lib/kamal/commander.rb index a98ac2b5..92717b10 100644 --- a/lib/kamal/commander.rb +++ b/lib/kamal/commander.rb @@ -51,14 +51,6 @@ class Kamal::Commander 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 @@ class Kamal::Commander @traefik ||= Kamal::Commands::Traefik.new(config) end + def with_verbosity(level) old_level = self.verbosity @@ -140,6 +133,14 @@ class Kamal::Commander 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