lib/percheron/commands/recreate.rb in percheron-0.6.4 vs lib/percheron/commands/recreate.rb in percheron-0.7.0
- old
+ new
@@ -1,21 +1,13 @@
module Percheron
module Commands
class Recreate < Abstract
- default_parameters!
+ default_create_parameters!
- option "--force", :flag, 'Force recreation', default: false
- option "--delete", :flag, 'Delete container + image before recreation', default: false
-
def execute
- opts = {
- container_names: container_names,
- force_recreate: force?,
- delete: delete?
- }
-
- stack.recreate!(opts)
+ super
+ stack.recreate!(container_names: container_names, start: start?)
end
end
end
end