diff options
author | danielsdeleo <dan@opscode.com> | 2013-11-26 16:54:49 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-12-04 15:46:35 -0800 |
commit | c16c5046c5c62d86be74471e003dd44b4a2cb726 (patch) | |
tree | 99b1ece5dd770333bf45d17acb330a627e272bae /lib/ohai/provides_map.rb | |
parent | 93967ce42bf6d34ce0302ae3d100e0e05d0b675c (diff) | |
download | ohai-c16c5046c5c62d86be74471e003dd44b4a2cb726.tar.gz |
Remove access to ProvidesMap internal data structure
Only test code was accessing this, modified to use the public API of the
class.
Diffstat (limited to 'lib/ohai/provides_map.rb')
-rw-r--r-- | lib/ohai/provides_map.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/ohai/provides_map.rb b/lib/ohai/provides_map.rb index bbf68fb0..2f61f550 100644 --- a/lib/ohai/provides_map.rb +++ b/lib/ohai/provides_map.rb @@ -73,21 +73,6 @@ module Ohai collect_plugins_in(map, collected).uniq end - # TODO: change this to has_provider? or something domain specific. - def has_key?(key) - @map.has_key?(key) - end - - # TODO: refactor out direct access to the map (mostly only occurs in test code) - def [](key) - @map[key] - end - - # TODO: refactor out direct access to the map (mostly only occurs in test code) - def []=(key, value) - @map[key] = value - end - private def collect_plugins_in(provides_map, collected) |