Document the rolling option for traefik reboots

This commit is contained in:
Lewis Buckley
2023-07-19 15:03:15 +01:00
parent ecfd258093
commit 9d5a6d1321
2 changed files with 11 additions and 1 deletions

View File

@@ -9,8 +9,8 @@ class Mrsk::Cli::Traefik < Mrsk::Cli::Base
end
end
method_option :rolling, type: :boolean, default: false, desc: "Reboot traefik on hosts in sequence, rather than in parallel"
desc "reboot", "Reboot Traefik on servers (stop container, remove container, start new container)"
option :rolling, type: :boolean, default: false, desc: "Reboot traefik on hosts in sequence, rather than in parallel"
def reboot
mutating do
on(MRSK.traefik_hosts, in: options[:rolling] ? :sequence : :parallel) do