Debug commit

This commit is contained in:
Brian Cain 2018-03-14 15:57:48 -07:00
parent 0cbf6970fc
commit 51e4118cc2
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
3 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
require "set" require "set"
require 'pry'
require "vagrant/config/v2/util" require "vagrant/config/v2/util"
@ -63,6 +64,7 @@ module Vagrant
def validate(machine) def validate(machine)
# Go through each of the configuration keys and validate # Go through each of the configuration keys and validate
errors = {} errors = {}
binding.pry
@keys.each do |_key, instance| @keys.each do |_key, instance|
if instance.respond_to?(:validate) if instance.respond_to?(:validate)
# Validate this single item, and if we have errors then # Validate this single item, and if we have errors then

View File

@ -1,4 +1,5 @@
require "vagrant" require "vagrant"
require 'pry'
require_relative "ssh_connect" require_relative "ssh_connect"

View File

@ -130,6 +130,7 @@ module VagrantPlugins
# Validate Trigger settings # Validate Trigger settings
# TODO: Validate not called if there are guests defined in vagrantfile # TODO: Validate not called if there are guests defined in vagrantfile
def validate(machine) def validate(machine)
binding.pry
errors = _detected_errors errors = _detected_errors
@_before_triggers.each do |bt| @_before_triggers.each do |bt|
error = bt.validate(machine) error = bt.validate(machine)