Clean up export progress output
This commit is contained in:
parent
29b5414295
commit
7f10c05b5b
|
@ -38,9 +38,14 @@ module Vagrant
|
||||||
|
|
||||||
def export
|
def export
|
||||||
@env[:ui].info I18n.t("vagrant.actions.vm.export.exporting")
|
@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)
|
@env[:ui].report_progress(progress.percent, 100, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Clear the line a final time so the next data can appear
|
||||||
|
# alone on the line.
|
||||||
|
@env[:ui].clear_line
|
||||||
end
|
end
|
||||||
|
|
||||||
def ovf_path
|
def ovf_path
|
||||||
|
|
Loading…
Reference in New Issue