summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-07-12 09:12:07 -0700
committeradamedx <adamed@opscode.com>2013-08-19 11:46:24 -0700
commitd0ddff972c5dc3246ee326abb96f5403276bde70 (patch)
treea715c25086580bfd5dbad5e70a5642dfdaac6d28
parent50c12dce59a4a9627656246c67485a82c8d76ed8 (diff)
downloadohai-d0ddff972c5dc3246ee326abb96f5403276bde70.tar.gz
OHAI-412 allow attribute access via System objects
-rw-r--r--lib/ohai/system.rb3
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')