lib/vagrant/action/vm/forward_ports.rb
# This method checks for any port collisions with any VMs
# which are already created (by Vagrant or otherwise).
# report the collisions detected or will attempt to fix them
# automatically if the port is configured to do so.
This method checks for any port collisions with any VMs
which are already created (by Vagrant or otherwise).
report the collisions detected or will attempt to fix them
automatically if the port is configured to do so.
This method checks for any port collisions with any VMs which are already created ( by Vagrant or otherwise ) . report the collisions detected or will attempt to fix them automatically if the port is configured to do so .
def external_collision_check
          existing = used_ports
          @env.env.config.vm.forwarded_ports.each do |name, options|
            if existing.include?(options[:hostport].to_i)
              handle_collision(name, options, existing)
            end
          end
        end
def external_collision_check existing = used_ports @env . env . config . vm . forwarded_ports . each do | name , options | if existing . include? ( options [ :hostport ] . to_i ) handle_collision ( name , options , existing ) end end end
This method checks for any port collisions with any VMs
which are already created (by Vagrant or otherwise).
This method checks for any port collisions with any VMs which are already created ( by Vagrant or otherwise ) .