Class: Facts::Windows::Ssh

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/windows/ssh.rb

Constant Summary collapse

FACT_NAME =
'ssh'

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



8
9
10
11
12
13
14
# File 'lib/facter/facts/windows/ssh.rb', line 8

def call_the_resolver
  privileged = Facter::Resolvers::Identity.resolve(:privileged)
  ssh_info = Facter::Resolvers::Windows::Ssh.resolve(:ssh) if privileged
  ssh_facts = {}
  ssh_info&.each { |ssh| ssh_facts.merge!(create_ssh_fact(ssh)) }
  Facter::ResolvedFact.new(FACT_NAME, ssh_facts.empty? ? nil : ssh_facts)
end