module VagrantPlugins::ManagedServers::Cap
Public Class Methods
public_address(machine)
click to toggle source
Returns guest's IP address that can be used to access the VM from the host machine.
@return [String] Guest's IP address
# File lib/vagrant-managed-servers/cap.rb, line 8 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