lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.4.3 vs lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.4.4
- old
+ new
@@ -111,12 +111,12 @@
ENV["VAGRANT_ORCHESTRATE_COMMAND"] = "PUSH"
begin
batchify(machines, :up, options)
batchify(machines, :provision, options)
batchify(machines, :reload, options) if options[:reboot]
+ ensure
batchify(machines, :destroy, options)
@logger.debug("Finished orchestrating push to group number #{index + 1} of #{groups.size}.")
- ensure
ENV.delete "VAGRANT_ORCHESTRATE_COMMAND"
end
# Don't prompt on the last group, that would be annoying
if index == groups.size - 1 || options[:force]