ports/sysutils/ruby-facter/files/facts/sshalgorithmkey.rb

18 lines
391 B
Ruby
Raw Normal View History

2023-08-16 22:26:55 +00:00
# frozen_string_literal: true
module Facts
module Openbsd
class Sshalgorithmkey
FACT_NAME = 'ssh.*key'
TYPE = :legacy
def call_the_resolver
facts = []
result = Facter::Resolvers::Ssh.resolve(:ssh)
result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) }
facts
end
end
end
end