summaryrefslogtreecommitdiff
path: root/lib/facter/shorewall_major_version.rb
blob: a7338421c2f957d5ba363564261b93c311cf196d (plain)
1
2
3
4
5
Facter.add("shorewall_major_version") do
  setcode do
    Facter::Util::Resolution.exec('shorewall version').split('.')[0]    || nil
  end
end