Style
This commit is contained in:
parent
01369342db
commit
fc8e97cd89
|
@ -9,8 +9,12 @@ module VagrantPlugins
|
||||||
class RDP
|
class RDP
|
||||||
def self.rdp_client(env, rdp_info)
|
def self.rdp_client(env, rdp_info)
|
||||||
# Setup password
|
# Setup password
|
||||||
cmdKeyArgs = ["/add:#{rdp_info[:host]}:#{rdp_info[:port]}", "/user:#{rdp_info[:username]}", "/pass:#{rdp_info[:password]}"]
|
cmdKeyArgs = [
|
||||||
Vagrant::Util::Subprocess.execute("cmdkey", *cmdKeyArgs )
|
"/add:#{rdp_info[:host]}:#{rdp_info[:port]}",
|
||||||
|
"/user:#{rdp_info[:username]}",
|
||||||
|
"/pass:#{rdp_info[:password]}",
|
||||||
|
]
|
||||||
|
Vagrant::Util::Subprocess.execute("cmdkey", *cmdKeyArgs)
|
||||||
|
|
||||||
# Build up the args to mstsc
|
# Build up the args to mstsc
|
||||||
args = ["/v:#{rdp_info[:host]}:#{rdp_info[:port]}"]
|
args = ["/v:#{rdp_info[:host]}:#{rdp_info[:port]}"]
|
||||||
|
|
Loading…
Reference in New Issue