Module: Facter::Util::Macaddress::Windows
- Defined in:
- lib/facter/util/macaddress.rb
Class Method Summary collapse
Class Method Details
.macaddress ⇒ Object
35 36 37 38 39 40 |
# File 'lib/facter/util/macaddress.rb', line 35 def macaddress require 'facter/util/ip/windows' adapter = Facter::Util::IP::Windows.get_preferred_ipv4_adapters.first adapter ? adapter.MACAddress : nil end |