Module: VagrantPlugins::VCloud::Cap::WinRM

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

Class Method Summary collapse

Class Method Details

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

Reads the WinRM 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/winrm_info.rb', line 9

def self.winrm_info(machine)
  env = machine.action('read_winrm_info')
  env[:machine_ssh_info]
end