From 7f10c05b5b37f437b44f8fb45682d6d0bf068931 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 13 Jan 2012 17:46:39 -0800 Subject: [PATCH] Clean up export progress output --- lib/vagrant/action/vm/export.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/vm/export.rb b/lib/vagrant/action/vm/export.rb index 9bcc7a089..8228f86df 100644 --- a/lib/vagrant/action/vm/export.rb +++ b/lib/vagrant/action/vm/export.rb @@ -38,9 +38,14 @@ module Vagrant def export @env[:ui].info I18n.t("vagrant.actions.vm.export.exporting") - @env["vm"].driver.export(ovf_path) do |progress| + @env[:vm].driver.export(ovf_path) do |progress| + @env[:ui].clear_line @env[:ui].report_progress(progress.percent, 100, false) end + + # Clear the line a final time so the next data can appear + # alone on the line. + @env[:ui].clear_line end def ovf_path