summaryrefslogtreecommitdiff
path: root/lib/facter/shorewall_major_version.rb
blob: 017aed369384fa45bb928e50913d6f48cc6b4f92 (plain)
1
2
3
4
5
6
7
Facter.add("shorewall_major_version") do
  confine :shorewall_version => /\d/
  setcode do
    v = Facter.value('shorewall_version')
    v.nil? ? nil : v.split('.').first
  end
end