Sha256: c3619a8197dab8f8d8ca10a8dbf2459db30c4a0ff1c7478b43ec6046e344a852

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facter-4.10.0 lib/facter/facts/openbsd/sshalgorithmkey.rb
facter-4.9.0 lib/facter/facts/openbsd/sshalgorithmkey.rb
facter-4.8.0 lib/facter/facts/openbsd/sshalgorithmkey.rb
facter-4.7.1 lib/facter/facts/openbsd/sshalgorithmkey.rb
facter-4.7.0 lib/facter/facts/openbsd/sshalgorithmkey.rb