Clean up export progress output

This commit is contained in:
Mitchell Hashimoto 2012-01-13 17:46:39 -08:00
parent 29b5414295
commit 7f10c05b5b
1 changed files with 6 additions and 1 deletions

View File

@ -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