Permalink
Browse files

OHAI-412 allow attribute access via System objects

  • Loading branch information...
1 parent c6f4a08 commit b6fba22bb444abb27e127d8ac7a3f548fe5f0580 @danielsdeleo danielsdeleo committed Jul 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/ohai/system.rb
View
@@ -41,6 +41,9 @@ def initialize
@hints = Hash.new
end
+ def [](key)
+ @data[key]
+ end
def all_plugins
require_plugin('os')

0 comments on commit b6fba22

Please sign in to comment.