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

Version Path
facter-1.7.6 lib/facter/zfs_version.rb
facter-1.7.5 lib/facter/zfs_version.rb
facter-1.7.5.rc2 lib/facter/zfs_version.rb
facter-1.7.5.rc1 lib/facter/zfs_version.rb
facter-1.7.4 lib/facter/zfs_version.rb
facter-1.7.4.rc1 lib/facter/zfs_version.rb
facter-1.7.3 lib/facter/zfs_version.rb
facter-1.7.3.rc1 lib/facter/zfs_version.rb
facter-1.7.2 lib/facter/zfs_version.rb
facter-1.7.2.rc1 lib/facter/zfs_version.rb
facter-1.7.1 lib/facter/zfs_version.rb
facter-1.7.1.rc1 lib/facter/zfs_version.rb
facter-1.7.0 lib/facter/zfs_version.rb
facter-1.7.0.rc2 lib/facter/zfs_version.rb
facter-1.7.0.rc1 lib/facter/zfs_version.rb