vagrant/lib/vagrant/config/vagrant.rb

16 lines
410 B
Ruby

module Vagrant
module Config
class VagrantConfig < Base
attr_accessor :dotfile_name
attr_accessor :host
attr_accessor :ssh_session_cache
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
end
end
end