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
|
# File 'lib/mrsk/cli/prune.rb', line 3
def all
containers
images
end
|
#containers ⇒ Object
17
18
19
20
21
22
|
# File 'lib/mrsk/cli/prune.rb', line 17
def containers
on(MRSK.hosts) do
execute *MRSK.auditor.record("Pruned containers"), verbosity: :debug
execute *MRSK.prune.containers
end
end
|
#images ⇒ Object
9
10
11
12
13
14
|
# File 'lib/mrsk/cli/prune.rb', line 9
def images
on(MRSK.hosts) do
execute *MRSK.auditor.record("Pruned images"), verbosity: :debug
execute *MRSK.prune.images
end
end
|