summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-03-16 14:18:04 +0000
committerGitHub <noreply@github.com>2018-03-16 14:18:04 +0000
commit4e81dd3b60ddd519ddac30c947d25bf09e64b5ef (patch)
tree098e3ecb0cf1a19f8103178ff4351b8484f810f5
parent8879ae09eeb571f3abe25a786cbd049244ecebda (diff)
parent358747d0f14de787527d8e827b40560313f23a5f (diff)
downloadchef-zero-4e81dd3b60ddd519ddac30c947d25bf09e64b5ef.tar.gz
Merge pull request #276 from adamdecaf/hashie-warns
Disable Hashie method override warns
-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