summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2017-02-10 15:07:13 -0500
committerMicah Anderson <micah@riseup.net>2017-02-10 15:07:13 -0500
commit4128f0735498964aef424ecdefbfc0f3c0f963db (patch)
treed0a208ec8bad45455c3392a563c6b44f49b4dce9 /lib
parent334332c38f0044d54c1b7166f727bfa480cb0a84 (diff)
parent054ccc9e8ee0a03e98165ee44f113ce7ccf3bc5c (diff)
Merge remote-tracking branch 'origin/master' into riseup
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/shorewall_major_version.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/facter/shorewall_major_version.rb b/lib/facter/shorewall_major_version.rb
new file mode 100644
index 0000000..0068b48
--- /dev/null
+++ b/lib/facter/shorewall_major_version.rb
@@ -0,0 +1,5 @@
+Facter.add("shorewall_major_version") do
+ setcode do
+ Facter::Util::Resolution.exec('shorewall version').split('.').first || nil
+ end
+end