Sha256: d6719a23e46ec1e13ceb2d74aacb5732a8a8d0872589c5f85e88deb61c1d65a6
Contents?: true
Size: 838 Bytes
Versions: 3
Compression:
Stored size: 838 Bytes
Contents
require "vagrant/util/scoped_hash_override" module VagrantPlugins module VCloud module Util module CompileForwardedPorts include Vagrant::Util::ScopedHashOverride # This method compiles the forwarded ports into {ForwardedPort} # models. def compile_forwarded_ports(config) mappings = {} config.vm.networks.each do |type, options| if type == :forwarded_port guest_port = options[:guest] host_port = options[:host] options = scoped_hash_override(options, :vcloud) id = options[:id] mappings[host_port] = Model::ForwardedPort.new(id, host_port, guest_port, options) end end mappings.values end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems