diff options
author | danielsdeleo <dan@opscode.com> | 2013-07-12 09:12:07 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-07-15 11:59:23 -0700 |
commit | 8d6c195b3bf99090383acc9fa36248f76afcaf54 (patch) | |
tree | ba0c13b22a208ad909e52e43bd884018e1a59dff | |
parent | 0e8a7ccdf593da087151e978aae5b34cd8bb3e09 (diff) | |
download | ohai-8d6c195b3bf99090383acc9fa36248f76afcaf54.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') |