Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/facter/ssh_client_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
confine kernel: %w[Linux SunOS FreeBSD DragonFly Darwin]

setcode do
if Facter::Util::Resolution.which('ssh')
version = Facter::Util::Resolution.exec('ssh -V 2>&1')
if Facter::Core::Execution.which('ssh')
version = Facter::Core::Execution.execute('ssh -V 2>&1')
.lines
.to_a
.select { |line| line.match(%r{^OpenSSH_|^Sun_SSH_}) }
Expand Down
4 changes: 2 additions & 2 deletions lib/facter/ssh_server_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
confine kernel: %w[Linux SunOS FreeBSD DragonFly Darwin]

setcode do
if Facter::Util::Resolution.which('sshd')
if Facter::Core::Execution.which('sshd')
# sshd doesn't actually have a -V option (hopefully one will be added),
# by happy coincidence the usage information that is printed includes the
# version number.
version = Facter::Util::Resolution.exec('sshd -V 2>&1')
version = Facter::Core::Execution.execute('sshd -V 2>&1')
.lines
.to_a
.select { |line| line.match(%r{^OpenSSH_|^Sun_SSH_}) }
Expand Down
Loading