Sha256: 8399e22f9fc8958f56ffef867685e5d887ae68711dc71ec274f460a478be1777
Contents?: true
Size: 394 Bytes
Versions: 83
Compression:
Stored size: 394 Bytes
Contents
module Specinfra class HostInventory class Ohai < Base def get begin require 'json' rescue LoadError return nil end begin ret = backend.run_command('ohai --log_level error') rescue StandardError nil end ret.exit_status.zero? ? JSON.parse(ret.stdout) : nil end end end end
Version data entries
83 entries across 83 versions & 1 rubygems