Sha256: 790410fda99e2997aa75e4361dc9578e9ef4d8eac649696314c4bae849cb83fa

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Sles
    module Ruby
      class Version
        FACT_NAME = 'ruby.version'
        ALIASES = 'rubyversion'

        def call_the_resolver
          fact_value = Facter::Resolvers::Ruby.resolve(:version)
          [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facter-4.0.9.pre lib/facts/sles/ruby/version.rb