5 lines
161 B
Ruby
5 lines
161 B
Ruby
Facter.add("ssh_version") do
|
|
setcode do
|
|
ssh_version = Facter::Util::Resolution.exec('ssh -V 2>&1 1>/dev/null').chomp.split(' ')[0].split('_')[1]
|
|
end
|
|
end
|