summaryrefslogtreecommitdiffstats
path: root/lib/facter/rubyversion.rb
blob: e578400ed3dedff8379ec448e51acda0a176a67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Fact: rubyversion
#
# Purpose: Returns the version of Ruby facter is running under.
#
# Resolution: Returns RUBY_VERSION.
#
# Caveats:
#

Facter.add(:rubyversion) do
    setcode { RUBY_VERSION.to_s }
end