Sha256: 4aafb4ba351b00ff090a357b52c3435d3a59ad63e362fb57778992eba88d98a6
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true module Facts module Linux module Cloud class Provider FACT_NAME = 'cloud.provider' def initialize @virtual = Facter::Util::Facts::VirtualDetector.new end def call_the_resolver provider = case @virtual.platform when 'hyperv' 'azure' unless Facter::Resolvers::Az.resolve(:metadata).empty? end Facter::ResolvedFact.new(FACT_NAME, provider) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.1.1 | lib/facter/facts/linux/cloud/provider.rb |
facter-4.1.0 | lib/facter/facts/linux/cloud/provider.rb |