Sha256: b69b528f1c21f10fb9136ddc2e66659ec41a927ac0b4cd263f9a369da582b6b1
Contents?: true
Size: 658 Bytes
Versions: 26
Compression:
Stored size: 658 Bytes
Contents
module VagrantPlugins module Parallels module Cap module ForwardedPorts # Reads the forwarded ports that currently exist on the machine # itself. # # This also may not match up with configured forwarded ports, because # Vagrant auto port collision fixing may have taken place. # # @return [Hash<Integer, Integer>] Host => Guest port mappings. def self.forwarded_ports(machine) {}.tap do |result| machine.provider.driver.read_forwarded_ports.each do |_, _, h, g| result[h] = g end end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems