commands/rdp: nicer output
This commit is contained in:
parent
8698ebeff6
commit
3d0a2959cd
|
@ -25,9 +25,15 @@ module VagrantPlugins
|
|||
raise Vagrant::Errors::VMNotCreatedError
|
||||
end
|
||||
|
||||
machine.ui.output(I18n.t("vagrant_rdp.detecting"))
|
||||
rdp_info = get_rdp_info(machine)
|
||||
raise Errors::RDPUndetected if !rdp_info
|
||||
|
||||
machine.ui.detail(
|
||||
"Address: #{rdp_info[:host]}:#{rdp_info[:port]}")
|
||||
machine.ui.detail("Username: #{rdp_info[:username]}")
|
||||
|
||||
machine.ui.success(I18n.t("vagrant_rdp.connecting"))
|
||||
@env.host.capability(:rdp_client, rdp_info)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
en:
|
||||
vagrant_rdp:
|
||||
detecting: |-
|
||||
Detecting RDP info...
|
||||
connecting: |-
|
||||
Vagrant will now launch your RDP client with the connection parameters
|
||||
above. If the connection fails, verify that the information above is
|
||||
correct. Additionally, make sure the RDP server is configured and
|
||||
running in the guest machine (it is disabled by default on Windows).
|
||||
Also, verify that the firewall is open to allow RDP connections.
|
||||
|
||||
errors:
|
||||
host_unsupported: |-
|
||||
Vagrant doesn't support running an RDP client on your
|
||||
|
|
Loading…
Reference in New Issue