Add client access to ui
This commit is contained in:
parent
7a38f46633
commit
84b9b1650a
@ -83,6 +83,11 @@ module Vagrant
|
||||
def rewriting
|
||||
yield self
|
||||
end
|
||||
|
||||
def to_proto
|
||||
raise NotImplementedError,
|
||||
"Vagrant::UI::Interface#to_proto"
|
||||
end
|
||||
end
|
||||
|
||||
# This is a UI implementation that does nothing.
|
||||
@ -296,6 +301,14 @@ module Vagrant
|
||||
@ui = ui
|
||||
end
|
||||
|
||||
def to_proto
|
||||
@ui.to_proto
|
||||
end
|
||||
|
||||
def client
|
||||
@ui.client
|
||||
end
|
||||
|
||||
def initialize_copy(original)
|
||||
super
|
||||
@ui = original.instance_variable_get(:@ui).dup
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
module Vagrant
|
||||
module UI
|
||||
class Remote < Basic
|
||||
attr_reader :client
|
||||
|
||||
def initialize(client)
|
||||
super()
|
||||
@client = client
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user