summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Shannon <adamkshannon@gmail.com>2018-03-15 15:33:41 -0500
committerAdam Shannon <adamkshannon@gmail.com>2018-03-16 09:11:14 -0500
commit358747d0f14de787527d8e827b40560313f23a5f (patch)
tree098e3ecb0cf1a19f8103178ff4351b8484f810f5
parent8879ae09eeb571f3abe25a786cbd049244ecebda (diff)
downloadchef-zero-358747d0f14de787527d8e827b40560313f23a5f.tar.gz
Disable Hashie method override warns
Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
-rw-r--r--lib/chef_zero/chef_data/cookbook_data.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef_zero/chef_data/cookbook_data.rb b/lib/chef_zero/chef_data/cookbook_data.rb
index d41948b..d646676 100644
--- a/lib/chef_zero/chef_data/cookbook_data.rb
+++ b/lib/chef_zero/chef_data/cookbook_data.rb
@@ -2,6 +2,10 @@ require "digest/md5"
require "hashie"
module ChefZero
+ class Mash < ::Hashie::Mash
+ disable_warnings
+ end
+
module ChefData
module CookbookData
class << self
@@ -175,7 +179,7 @@ module ChefZero
name(cookbook.name)
recipes(cookbook.fully_qualified_recipe_names)
%w{attributes grouping dependencies supports recommendations suggestions conflicting providing replacing recipes}.each do |hash_arg|
- self[hash_arg.to_sym] = Hashie::Mash.new
+ self[hash_arg.to_sym] = Mash.new
end
end