diff options
author | danielsdeleo <dan@opscode.com> | 2013-07-12 09:12:07 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-19 11:46:24 -0700 |
commit | d0ddff972c5dc3246ee326abb96f5403276bde70 (patch) | |
tree | a715c25086580bfd5dbad5e70a5642dfdaac6d28 | |
parent | 50c12dce59a4a9627656246c67485a82c8d76ed8 (diff) | |
download | ohai-d0ddff972c5dc3246ee326abb96f5403276bde70.tar.gz |
OHAI-412 allow attribute access via System objects
-rw-r--r-- | lib/ohai/system.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb index d1c3c8da..8e5e212a 100644 --- a/lib/ohai/system.rb +++ b/lib/ohai/system.rb @@ -41,6 +41,9 @@ module Ohai @hints = Hash.new end + def [](key) + @data[key] + end def all_plugins require_plugin('os') |