Method: Vagrant::Config::VagrantConfig#validate

Defined in:
lib/vagrant/config/vagrant.rb

#validate(env, errors) ⇒ Object



7
8
9
10
11
# File 'lib/vagrant/config/vagrant.rb', line 7

def validate(env, errors)
  [:dotfile_name, :host].each do |field|
    errors.add(I18n.t("vagrant.config.common.error_empty", :field => field)) if !instance_variable_get("@#{field}".to_sym)
  end
end