Sha256: 7a97b0eee8c386464672e822d59053b0533e0703d02d3339d22190dcb5561537

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

if Facter::Util::Resolution.which('onering')
  onering = {}

  if defined?(Gem)
    if defined?(Gem::Specification)
      if Gem::Specification.respond_to?(:find_by_name)
        onering[:version] = Gem::Specification.find_by_name('onering-agent').version.to_s
      end
    end
  end

  unless onering.empty?
    Facter.add('onering') do
      setcode { onering }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
onering-report-0.6.13 lib/facter/onering_properties_onering.rb
onering-report-0.6.12 lib/facter/onering_properties_onering.rb
onering-report-0.6.11 lib/facter/onering_properties_onering.rb
onering-report-0.6.10 lib/facter/onering_properties_onering.rb
onering-report-0.6.9 lib/facter/onering_properties_onering.rb
onering-report-0.6.8 lib/facter/onering_properties_onering.rb