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
bolt-0.21.7 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.6 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.5 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.4 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.3 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.2 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.1 vendored/facter/lib/facter/zpool_version.rb
bolt-0.21.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.20.7 vendored/facter/lib/facter/zpool_version.rb
bolt-0.20.6 vendored/facter/lib/facter/zpool_version.rb
bolt-0.20.5 vendored/facter/lib/facter/zpool_version.rb
bolt-0.20.3 vendored/facter/lib/facter/zpool_version.rb
bolt-0.20.2 vendored/facter/lib/facter/zpool_version.rb
bolt-0.19.1 vendored/facter/lib/facter/zpool_version.rb
bolt-0.19.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.18.2 vendored/facter/lib/facter/zpool_version.rb
bolt-0.18.1 vendored/facter/lib/facter/zpool_version.rb
bolt-0.18.0 vendored/facter/lib/facter/zpool_version.rb
bolt-0.17.2 vendored/facter/lib/facter/zpool_version.rb
bolt-0.17.1 vendored/facter/lib/facter/zpool_version.rb