Sha256: 1c063cb9a2b1291a3e4e092b88cc0ad31efca975d4cb91fbac410bd4f1010901

Contents?: true

Size: 509 Bytes

Versions: 20

Compression:

Stored size: 509 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

20 entries across 20 versions & 1 rubygems

Version Path
facter-4.0.35 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.34 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.33 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.32 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.31 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.30 lib/facter/facts/macosx/sshfp_algorithm.rb
facter-4.0.29 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.28 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.26 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.25 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.24 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.23 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.22 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.21 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.20 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.19 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.18 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.17 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.16 lib/facts/macosx/sshfp_algorithm.rb
facter-4.0.15 lib/facts/macosx/sshfp_algorithm.rb