Sha256: df7e6f9f8b8a87f2ab99d79baf1e8bae470b3da5f3fe9cf188dc983145fbc547

Contents?: true

Size: 453 Bytes

Versions: 23

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module VagrantPlugins
  module ProviderLibvirt
    module Cap
      class PublicAddress
        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
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
vagrant-libvirt-0.12.2 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.12.1 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.12.0 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.11.2 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.11.1 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.8 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.7 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.6 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.5 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.4 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.3 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.2 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.1 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.10.0 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.9.0 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.8.2 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.8.1 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.8.0 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.7.0 lib/vagrant-libvirt/cap/public_address.rb
vagrant-libvirt-0.6.3 lib/vagrant-libvirt/cap/public_address.rb