lib/vagrant/action/vm/nfs.rb
# Returns the IP address of the first host only network adapter
#
# @return [String]
Returns the IP address of the first host only network adapter
Returns the IP address of the first host only network adapter
def host_ip
          interface = @env["vm"].vm.network_adapters.find do |adapter|
            adapter.host_interface_object
          end
          return nil if !interface
          interface.host_interface_object.ip_address
        end
def host_ip interface = @env [ "vm" ] . vm . network_adapters . find do | adapter | adapter . host_interface_object end return nil if ! interface interface . host_interface_object . ip_address end
Returns the IP address of the first host only network adapter
Returns the IP address of the first host only network adapter
None
String