diff options
author | Micah Anderson <micah@riseup.net> | 2017-02-10 15:07:13 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2017-02-10 15:07:13 -0500 |
commit | 4128f0735498964aef424ecdefbfc0f3c0f963db (patch) | |
tree | d0a208ec8bad45455c3392a563c6b44f49b4dce9 /lib | |
parent | 334332c38f0044d54c1b7166f727bfa480cb0a84 (diff) | |
parent | 054ccc9e8ee0a03e98165ee44f113ce7ccf3bc5c (diff) |
Merge remote-tracking branch 'origin/master' into riseup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/shorewall_major_version.rb | 5 |
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 |