Sha256: c99d6fbade47e66cb2f85b5fabca960b6fcfa56721a04477e50b0fee0f0cfec6

Contents?: true

Size: 202 Bytes

Versions: 9

Compression:

Stored size: 202 Bytes

Contents

Facter.add :rubysitedir do
    setcode do
        version = RUBY_VERSION.to_s.sub(/\.\d+$/, '')
        $:.find do |dir|
            dir =~ /#{File.join("site_ruby", version)}$/
        end
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facter-1.5.9 lib/facter/rubysitedir.rb
facter-1.5.8 lib/facter/rubysitedir.rb
facter-1.5.7 lib/facter/rubysitedir.rb
facter-1.5.3 lib/facter/rubysitedir.rb
facter-1.5.5 lib/facter/rubysitedir.rb
facter-1.5.6 lib/facter/rubysitedir.rb
facter-1.5.4 lib/facter/rubysitedir.rb
facter-1.5.2 lib/facter/rubysitedir.rb
facter-1.5 lib/facter/rubysitedir.rb