Sha256: b5d4608847f9a781f236f4268c2d14b014ed64c8e3f15c66052032e1ac437175

Contents?: true

Size: 507 Bytes

Versions: 11

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Macosx
    class SshfpAlgorithm
      FACT_NAME = 'sshfp_.*'
      TYPE = :legacy

      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

11 entries across 11 versions & 1 rubygems

Version Path
facter-4.0.47 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.46 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.44 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.43 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.42 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.41 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.40 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.39 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.38 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.37 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.36 lib/facter/facts/macosx/sshfp_algorithm.rb