Class: Mrsk::Cli::Prune

Inherits:
Base
  • Object
show all
Defined in:
lib/mrsk/cli/prune.rb

Instance Method Summary collapse

Methods inherited from Base

exit_on_failure?, #initialize

Constructor Details

This class inherits a constructor from Mrsk::Cli::Base

Instance Method Details

#allObject



3
4
5
6
7
8
# File 'lib/mrsk/cli/prune.rb', line 3

def all
  mutating do
    containers
    images
  end
end

#containersObject



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

#imagesObject



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