Module: VagrantPlugins::VCloud::Cap::RDP

Defined in:
lib/vagrant-vcloud/cap/rdp_info.rb

Class Method Summary collapse

Class Method Details

.rdp_info(machine) ⇒ Hash<Integer, Integer>

Reads the RDP forwarded port that currently exists on the machine itself. This raises an exception if the machine isn't running.

Returns:

  • (Hash<Integer, Integer>)

    Host => Guest port mappings.


9
10
11
12
# File 'lib/vagrant-vcloud/cap/rdp_info.rb', line 9

def self.rdp_info(machine)
  env = machine.action('read_rdp_info')
  env[:machine_ssh_info]
end