Sha256: b51529291ab627f84a8ad14a638b89a24b00b952e9185286c9486ad7353ac053

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Windows
    class RubyVersion
      FACT_NAME = 'ruby.version'
      ALIASES = 'rubyversion'

      def call_the_resolver
        fact_value = Resolvers::Ruby.resolve(:version)

        [ResolvedFact.new(FACT_NAME, fact_value), ResolvedFact.new(ALIASES, fact_value, :legacy)]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/windows/ruby/version.rb
facter-4.0.7.pre lib/facts/windows/ruby/version.rb