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

Commit

Permalink
vsftpd_installed_version: update for facter 3
Browse files Browse the repository at this point in the history
  • Loading branch information
gwarf committed Nov 13, 2015
1 parent 9b5b4f9 commit ead4d02
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/facter/vsftpd_installed_version.rb
@@ -1,9 +1,6 @@
require 'facter/util/resolution'

output = Facter::Util::Resolution.exec('vsftpd -v 0>&1') || 'vsftpd: version 0'

Facter.add(:vsftpd_installed_version) do
setcode do
output = Facter::Util::Resolution.exec('vsftpd -v 0>&1') || 'vsftpd: version 0'
output.gsub(/^vsftpd: version ([\d\.]+)$/, '\1')
end
end

0 comments on commit ead4d02

Please sign in to comment.