# File lib/mixlib/config.rb, line 186 def restore(hash) self.configuration = hash.reject { |key, value| config_contexts.has_key?(key) } config_contexts.each do |key, config_context| if hash.has_key?(key) config_context.restore(hash[key]) else config_context.reset end end end