Child environment UIs match the parent

This commit is contained in:
Mitchell Hashimoto 2010-08-25 22:23:36 -07:00
parent 3fdcd50ea0
commit 5e0a7d946e
2 changed files with 2 additions and 1 deletions

View File

@ -138,6 +138,7 @@ module Vagrant
# Returns the {UI} for the environment, which is responsible
# for talking with the outside world.
def ui
return parent.ui if parent
@ui ||= UI.new(self)
end

View File

@ -35,7 +35,7 @@ module Vagrant
def report_progress(progress, total, show_parts=true)
percent = (progress.to_f / total.to_f) * 100
line = "Progress: #{percent.to_i}%"
line << " (#{data[:progress]} / #{data[:total]})" if data[:show_parts]
line << " (#{progress} / #{total})" if show_parts
line = "#{line_reset}#{line}"
@shell.say(line, nil, false)