lib/percheron/commands/purge.rb in percheron-0.7.2 vs lib/percheron/commands/purge.rb in percheron-0.7.3
- old
+ new
@@ -1,13 +1,14 @@
module Percheron
module Commands
class Purge < Abstract
default_parameters!
+ option([ '-f', '--force' ], :flag, 'Force container/image removal', default: false)
def execute
super
- stack.purge!(container_names: container_names)
+ stack.purge!(container_names: container_names, force: force?)
end
end
end
end