2011-01-06 19:21:23 -08:00

17 lines
392 B
Ruby

module Vagrant
class Config
class VagrantConfig < Base
configures :vagrant
attr_accessor :dotfile_name
attr_accessor :host
def validate(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