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

Version Path
facter-2.5.7 lib/facter/zpool_version.rb
facter-2.5.7-x86-mingw32 lib/facter/zpool_version.rb
facter-2.5.7-x64-mingw32 lib/facter/zpool_version.rb
facter-2.5.7-universal-darwin lib/facter/zpool_version.rb
facter-2.5.6-x86-mingw32 lib/facter/zpool_version.rb
facter-2.5.6-x64-mingw32 lib/facter/zpool_version.rb
facter-2.5.6-universal-darwin lib/facter/zpool_version.rb
facter-2.5.6 lib/facter/zpool_version.rb
facter-2.5.5-x86-mingw32 lib/facter/zpool_version.rb
facter-2.5.5-x64-mingw32 lib/facter/zpool_version.rb
facter-2.5.5-universal-darwin lib/facter/zpool_version.rb
facter-2.5.5 lib/facter/zpool_version.rb
facter-2.5.4-x86-mingw32 lib/facter/zpool_version.rb
facter-2.5.4-x64-mingw32 lib/facter/zpool_version.rb
facter-2.5.4-universal-darwin lib/facter/zpool_version.rb
facter-2.5.4 lib/facter/zpool_version.rb
bolt-0.24.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.23.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.22.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.8 vendored/facter/lib/facter/zpool_version.rb