Sha256: 5830974d73bce86297808f1e446cf3d8e9e010545b7168b2a1c9efb30695314d
Contents?: true
Size: 264 Bytes
Versions: 15
Compression:
Stored size: 264 Bytes
Contents
require 'facter' Facter.add('zfs_version') do setcode do if Facter::Util::Resolution.which('zfs') zfs_v = Facter::Util::Resolution.exec('zfs upgrade -v') zfs_version = zfs_v.scan(/^\s+(\d+)\s+/m).flatten.last unless zfs_v.nil? end end end
Version data entries
15 entries across 15 versions & 1 rubygems