Sha256: fbcec9aa53396a88085e659049b5a009104deed2446c8f0188ec365efceb26ed

Contents?: true

Size: 384 Bytes

Versions: 25

Compression:

Stored size: 384 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-client').version.to_s
      end
    end
  end

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

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
onering-report-0.6.7 lib/facter/onering_properties_onering.rb
onering-report-0.6.6 lib/facter/onering_properties_onering.rb
onering-report-0.6.5 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.65 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.64 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.63 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.62 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.61 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.60 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.59 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.58 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.57 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.56 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.55 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.54 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.53 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.52 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.51 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.50 lib/facter/onering_properties_onering.rb
onering-report-plugins-0.0.49 lib/facter/onering_properties_onering.rb