Child environment UIs match the parent
This commit is contained in:
parent
3fdcd50ea0
commit
5e0a7d946e
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue