summaryrefslogtreecommitdiff
path: root/lib/chef_zero/chef_data/cookbook_data.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/chef_data/cookbook_data.rb')
-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