Sha256: 60052c59d9bf781bce3c58d40e0f0e8f0d537dcec250425411c98439ffd8ff48
Contents?: true
Size: 530 Bytes
Versions: 8
Compression:
Stored size: 530 Bytes
Contents
module VagrantPlugins module Parallels module Cap module NicMacAddresses # Reads the network interface card MAC addresses and returns them. # # @return [Hash<Integer, String>] Adapter => MAC address def self.nic_mac_addresses(machine) nic_macs = machine.provider.driver.read_mac_addresses # Make numeration starting from 1, as it is expected in Vagrant. Hash[nic_macs.map.with_index{ |mac, index| [index+1, mac] }] end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems