commands/rdp: nicer output

This commit is contained in:
Mitchell Hashimoto 2014-04-12 16:25:31 -07:00
parent 8698ebeff6
commit 3d0a2959cd
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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