class VagrantPlugins::ProviderLibvirt::Cap::PublicAddress

Public Class Methods

public_address(machine) click to toggle source
# File lib/vagrant-libvirt/cap/public_address.rb, line 6
def self.public_address(machine)
  # This does not need to be a globally routable address, it
  # only needs to be accessible from the machine running
  # Vagrant.
  ssh_info = machine.ssh_info
  return nil if !ssh_info
  ssh_info[:host]
end