Sha256: 905e44a38970dedb985a8f1ac2aff35a0d823a3f819f3e57510ebba36c809cac
Contents?: true
Size: 484 Bytes
Versions: 5
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Facts module El class SshfpAlgorithm FACT_NAME = 'sshfp_.*' def call_the_resolver facts = [] result = Facter::Resolvers::SshResolver.resolve(:ssh) result.each do |ssh| facts << Facter::ResolvedFact.new("sshfp_#{ssh.name.to_sym}", "#{ssh.fingerprint.sha1} \n #{ssh.fingerprint.sha256}", :legacy) end facts end end end end
Version data entries
5 entries across 5 versions & 1 rubygems