Module: Dapp::Deployment::CoreExt::Hash

Defined in:
lib/dapp/deployment/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#kube_in_depth_merge(hash) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/dapp/deployment/core_ext/hash.rb', line 5

def kube_in_depth_merge(hash)
  merge(hash) do |_, v1, v2|
    if v1.is_a?(::Hash) && v2.is_a?(::Hash)
      v1.kube_in_depth_merge(v2)
    else
      v2
    end
  end
end