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



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

def all
  invoke :containers
  invoke :images
end

#containersObject



16
17
18
# File 'lib/mrsk/cli/prune.rb', line 16

def containers
  on(MRSK.hosts) { execute *MRSK.prune.containers }
end

#imagesObject



11
12
13
# File 'lib/mrsk/cli/prune.rb', line 11

def images
  on(MRSK.hosts) { execute *MRSK.prune.images }
end