Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2330) Add ssh fact for Windows OpenSSH feature #424

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

oanatmaria
Copy link
Contributor

No description provided.

Comment on lines 34 to 35
require "#{ROOT_DIR}/lib/resolvers/utils/ssh.rb"
require "#{ROOT_DIR}/lib/resolvers/utils/ssh_helper.rb"
Copy link
Contributor

@gimmyxd gimmyxd Apr 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why there is a util/shh and a util/ssh_helper?
This is a bit confusing, alongside the fact that there are also other utils in different locations with different purposes. Could this 2 ssh be a single source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

util/shh is an object that contains structured information about a ssh key. util/ssh_helper creates an object of type util/shh after creating a fingerprint and extracting other information

@oanatmaria oanatmaria force-pushed the FACT-2330 branch 2 times, most recently from 7b73a76 to 8aad8c3 Compare April 8, 2020 12:29
lib/resolvers/utils/ssh_helper.rb Outdated Show resolved Hide resolved
spec/facter/facts/windows/ssh_spec.rb Show resolved Hide resolved
spec/facter/resolvers/windows/ssh_spec.rb Show resolved Hide resolved
@oanatmaria oanatmaria force-pushed the FACT-2330 branch 4 times, most recently from 24e547e to 126eca8 Compare April 15, 2020 07:10
lib/resolvers/windows/ssh.rb Outdated Show resolved Hide resolved
@Filipovici-Andrei Filipovici-Andrei merged commit f1fa328 into master Apr 15, 2020
@Filipovici-Andrei Filipovici-Andrei deleted the FACT-2330 branch April 15, 2020 08:47

private

def create_ssh_fact(ssh)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this duplicated in each ssh fact? is there a ticket to solve the duplications?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants