lib/percheron/cli/recreate_command.rb in percheron-0.3.2 vs lib/percheron/cli/recreate_command.rb in percheron-0.4.0
- old
+ new
@@ -2,11 +2,13 @@
module CLI
class RecreateCommand < AbstractCommand
parameter 'STACK_NAME', 'stack name'
+ option "--force", :flag, 'Force recreation', default: false
+
def execute
- Percheron::Stack.new(config, stack_name).recreate!(bypass_auto_recreate: true)
+ Percheron::Stack.new(config, stack_name).recreate!(force_recreate: force?, force_auto_recreate: true)
end
end
end
end