Sha256: e45efed77e06bba64d67c3632459614ff67568cf334d4ace604769a2a6071ba7
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module Facter module Windows class Scope6Interfaces FACT_NAME = 'scope6_.*' def call_the_resolver arr = [] result = {} interfaces = Resolvers::Networking.resolve(:interfaces) interfaces&.each { |interface_name, info| result["scope6_#{interface_name}"] = info[:scope6] if info[:scope6] } result.each { |fact, value| arr << ResolvedFact.new(fact, value, :legacy) } arr end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/facts/windows/scope6_interfaces.rb |
facter-4.0.7.pre | lib/facts/windows/scope6_interfaces.rb |