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

@@ -39,5 +39,13 @@ namespace :mrsk do
task :info do
on(MRSK_CONFIG.servers) { |host| puts "Host: #{host}\n" + capture(app.info) + "\n\n" }
end
desc "Remove app containers and images from servers"
task remove: %i[ stop ] do
on(MRSK_CONFIG.servers) do
execute app.remove_containers
execute app.remove_images
end
end
end
end