Method: Kamal::Cli::App#remove_containers
- Defined in:
- lib/kamal/cli/app.rb
#remove_containers ⇒ Object
313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/kamal/cli/app.rb', line 313 def remove_containers with_lock do on(KAMAL.app_hosts) do |host| roles = KAMAL.roles_on(host) roles.each do |role| execute *KAMAL.auditor.record("Removed all app containers", role: role), verbosity: :debug execute *KAMAL.app(role: role, host: host).remove_containers end end end end |