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
# File 'lib/mrsk/cli/prune.rb', line 3

def all
  invoke :containers
  invoke :images
end

#containersObject



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

#imagesObject



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