Add remove tasks to clean up

This commit is contained in:
David Heinemeier Hansson
2023-01-08 14:55:06 +01:00
parent 23c2cb898c
commit ffb532a50d
5 changed files with 40 additions and 0 deletions

View File

@@ -21,5 +21,13 @@ namespace :mrsk do
task :info do
on(MRSK_CONFIG.servers) { |host| puts "Host: #{host}\n" + capture(traefik.info) + "\n\n" }
end
desc "Remove Traefik container and image from servers"
task remove: %i[ stop ] do
on(MRSK_CONFIG.servers) do
execute traefik.remove_container
execute traefik.remove_image
end
end
end
end