Sha256: fb8f9ec2d843b6d92729a13d8b9b4d6bdd47933e1a36880212f6995901199561
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
class Kamal::Cli::Prune < Kamal::Cli::Base desc "all", "Prune unused images and stopped containers" def all mutating do containers images end end desc "images", "Prune dangling images" def images mutating do on(KAMAL.hosts) do execute *KAMAL.auditor.record("Pruned images"), verbosity: :debug execute *KAMAL.prune.dangling_images execute *KAMAL.prune.tagged_images end end end desc "containers", "Prune all stopped containers, except the last 5" def containers mutating do on(KAMAL.hosts) do execute *KAMAL.auditor.record("Pruned containers"), verbosity: :debug execute *KAMAL.prune.containers end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kamal-0.16.1 | lib/kamal/cli/prune.rb |
kamal-0.16.0 | lib/kamal/cli/prune.rb |