Sha256: 599e64f9ec050efb9af37cbbe09b4db7809b91ffa363005532517cfc57a21837
Contents?: true
Size: 276 Bytes
Versions: 99
Compression:
Stored size: 276 Bytes
Contents
require 'facter' Facter.add('zpool_version') do setcode do if Facter::Core::Execution.which('zpool') zpool_v = Facter::Core::Execution.exec('zpool upgrade -v') zpool_version = zpool_v.scan(/^\s+(\d+)\s+/m).flatten.last unless zpool_v.nil? end end end
Version data entries
99 entries across 99 versions & 2 rubygems