Sha256: 871cc712b7d39a37b51977655a915665224fea64943a6b8070eee4b4855f89f6
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true module Facter module Sles class Ssh FACT_NAME = 'ssh' def call_the_resolver result = Resolvers::SshResolver.resolve(:ssh) ssh_facts = {} result.each { |ssh| ssh_facts.merge!(create_ssh_fact(ssh)) } ResolvedFact.new(FACT_NAME, ssh_facts) end private def create_ssh_fact(ssh) { ssh.name.to_sym => { fingerprints: { sha1: ssh.fingerprint.sha1, sha256: ssh.fingerprint.sha256 }, key: ssh.key, type: ssh.type } } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/facts/sles/ssh.rb |
facter-4.0.7.pre | lib/facts/sles/ssh.rb |