lib/percheron/commands/purge.rb in percheron-0.6.3 vs lib/percheron/commands/purge.rb in percheron-0.6.4

- old
+ new

@@ -1,12 +1,13 @@ module Percheron module Commands class Purge < Abstract - parameter('STACK_NAME', 'stack name', required: false) + default_parameters! def execute - Percheron::Stack.new(config, stack_name).purge! + opts = { container_names: container_names } + stack.purge!(opts) end end end end