Update name and use constant alias
This commit is contained in:
parent
28ebbce108
commit
548a0339df
@ -1,15 +1,14 @@
|
||||
module VagrantPlugins
|
||||
module CommandServe
|
||||
module Client
|
||||
class TerminalClient
|
||||
|
||||
# @params [String] endpoint for the core service
|
||||
class Terminal
|
||||
# @params [String] endpoint for the core service
|
||||
def initialize(server_endpoint)
|
||||
@client = Hashicorp::Vagrant::Sdk::TerminalUIService::Stub.new(server_endpoint, :this_channel_is_insecure)
|
||||
@client = SDK::TerminalUIService::Stub.new(server_endpoint, :this_channel_is_insecure)
|
||||
end
|
||||
|
||||
def self.terminal_arg_to_terminal_ui(raw_terminal)
|
||||
terminal_arg = Hashicorp::Vagrant::Sdk::Args::TerminalUI.decode(raw_terminal)
|
||||
terminal_arg = SDK::Args::TerminalUI.decode(raw_terminal)
|
||||
# TODO (sophia): this should have an option to not be a unix socket
|
||||
addr = "unix:" + terminal_arg.addr
|
||||
self.new(addr)
|
||||
@ -17,7 +16,7 @@ module VagrantPlugins
|
||||
|
||||
# @params [Array] the content to print
|
||||
def output(content)
|
||||
req = Hashicorp::Vagrant::Sdk::TerminalUI::OutputRequest.new(
|
||||
req = SDK::TerminalUI::OutputRequest.new(
|
||||
lines: content
|
||||
)
|
||||
@client.output(req)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user