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