Sha256: 64d64232bbb57370555caf1b41b2fed34d7cd54a3e1343378b7feda26ff4d295

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Sles
    class Sshalgorithmkey
      FACT_NAME = 'ssh.*key'

      def call_the_resolver
        facts = []
        result = Facter::Resolvers::SshResolver.resolve(:ssh)
        result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) }
        facts
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facter-4.0.14 lib/facts/sles/sshalgorithmkey.rb
facter-4.0.13 lib/facts/sles/sshalgorithmkey.rb
facter-4.0.12 lib/facts/sles/sshalgorithmkey.rb
facter-4.0.11 lib/facts/sles/sshalgorithmkey.rb
facter-4.0.10.pre lib/facts/sles/sshalgorithmkey.rb