Sha256: d1485f3a9e68dddb9935b135282c23d47a2d851fec2ad6b07f1d6169fb405e8b
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
require 'ohai' require 'ganymed/collector' module Ganymed class Collector class Metadata < Base def collect! Ohai::System.new.tap do |ohai| %w( os kernel hostname keys network platform uptime virtualization ).each do |plugin| ohai.require_plugin(plugin) end @processor.metadata(ohai.data) # ohai doesn't cleanup after itself true while Process.wait(-1, Process::WNOHANG) rescue nil end end def interval nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ganymed-0.1.2 | lib/ganymed/collector/metadata.rb |
ganymed-0.1.1 | lib/ganymed/collector/metadata.rb |