Sha256: 239761013f5511d7ae39c3b367dc332374e450242dedd59d515b6f2cef0b3129
Contents?: true
Size: 477 Bytes
Versions: 21
Compression:
Stored size: 477 Bytes
Contents
module Vagrant class Config class VagrantConfig < Base configures :vagrant attr_accessor :dotfile_name attr_accessor :home attr_accessor :host def initialize @home = nil end def validate(errors) [:dotfile_name, :home, :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
Version data entries
21 entries across 21 versions & 2 rubygems