Class: Mrsk::Cli::Prune
- Inherits:
-
Base
- Object
- Thor
- Base
- Mrsk::Cli::Prune
show all
- Defined in:
- lib/mrsk/cli/prune.rb
Instance Method Summary
collapse
Methods inherited from Base
exit_on_failure?, #initialize
Instance Method Details
#all ⇒ Object
3
4
5
6
7
8
|
# File 'lib/mrsk/cli/prune.rb', line 3
def all
mutating do
containers
images
end
end
|
#containers ⇒ Object
22
23
24
25
26
27
28
29
|
# File 'lib/mrsk/cli/prune.rb', line 22
def containers
mutating do
on(MRSK.hosts) do
execute *MRSK.auditor.record("Pruned containers"), verbosity: :debug
execute *MRSK.prune.containers
end
end
end
|
#images ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/mrsk/cli/prune.rb', line 11
def images
mutating do
on(MRSK.hosts) do
execute *MRSK.auditor.record("Pruned images"), verbosity: :debug
execute *MRSK.prune.dangling_images
execute *MRSK.prune.tagged_images
end
end
end
|