Sha256: d23b321e6c2321d02693a9981e8040bcd721442f26bcf25b0f7535e0d2a27905
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
require "vagrant/util/which" module VagrantPlugins module HostLinux module Cap class RDP def self.rdp_client(env, rdp_info) if !Vagrant::Util::Which.which("rdesktop") raise Vagrant::Errors::LinuxRDesktopNotFound end args = [] args << "-u" << rdp_info[:username] args << "-p" << rdp_info[:password] if rdp_info[:password] args += rdp_info[:extra_args] if rdp_info[:extra_args] args << "#{rdp_info[:host]}:#{rdp_info[:port]}" Vagrant::Util::Subprocess.execute("rdesktop", *args) end end end end end
Version data entries
6 entries across 3 versions & 2 rubygems