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

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/hosts/linux/cap/rdp.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/hosts/linux/cap/rdp.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/hosts/linux/cap/rdp.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/hosts/linux/cap/rdp.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/hosts/linux/cap/rdp.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/hosts/linux/cap/rdp.rb