Class: Bunchr::Ohai
- Inherits:
-
Object
- Object
- Bunchr::Ohai
- Defined in:
- lib/bunchr/ohai.rb
Constant Summary collapse
- @@ohai =
nil
Class Method Summary collapse
Class Method Details
.ohai ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/bunchr/ohai.rb', line 8 def self.ohai if @@ohai.nil? @@ohai ||= ::Ohai::System.new @@ohai.load_plugins @@ohai.require_plugin('os') @@ohai.require_plugin('platform') end @@ohai end |