Sha256: a3ec3fdf1d59489cb33c7458819fcaaf84c42cddf4eacdf463b664a2867f048e

Contents?: true

Size: 350 Bytes

Versions: 18

Compression:

Stored size: 350 Bytes

Contents

module Vagrant
  module LXC
    class Provider
      module Cap
        module PublicAddress
          def self.public_address(machine)
            return nil if machine.state.id != :running

            ssh_info = machine.ssh_info
            return nil if !ssh_info
            ssh_info[:host]
          end
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
vagrant-lxc-1.4.3 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.4.2 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.4.1 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-2.1-patch-1.4.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.4.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.3.1 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.3.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.2.4 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.2.3 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.2.2 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.2.1 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.2.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.1.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.0.1 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.0.0 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.0.0.alpha.3 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.0.0.alpha.2 lib/vagrant-lxc/provider/cap/public_address.rb
vagrant-lxc-1.0.0.alpha.1 lib/vagrant-lxc/provider/cap/public_address.rb