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