Sha256: 1b70940472445fccfd92b986b3778b73b7b960b5b7c567aea0aa317efffd5db0

Contents?: true

Size: 493 Bytes

Versions: 82

Compression:

Stored size: 493 Bytes

Contents

module Vagrant
  module Config
    module V2
      class Util
        # This merges two error hashes from validate methods.
        #
        # @param [Hash] first
        # @param [Hash] second
        # @return [Hash] Merged result
        def self.merge_errors(first, second)
          first.dup.tap do |result|
            second.each do |key, value|
              result[key] ||= []
              result[key] += value
            end
          end
        end
      end
    end
  end
end

Version data entries

82 entries across 75 versions & 13 rubygems

Version Path
vagrant-unbundled-2.3.6.0 lib/vagrant/config/v2/util.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.3.3.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.3.2.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.19.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.18.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.16.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.14.0 lib/vagrant/config/v2/util.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.10.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.9.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.8.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.7.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.6.2 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.6.1 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.6.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.5.0 lib/vagrant/config/v2/util.rb
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.4.0 lib/vagrant/config/v2/util.rb
vagrant-unbundled-2.2.3.0 lib/vagrant/config/v2/util.rb