vagrant-lxc-ng/lib/vagrant-lxc/provider/cap/public_address.rb

18 lines
350 B
Ruby
Raw Normal View History

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