vaguerent/lib/vagrant/config/error_recorder.rb
2010-09-21 20:38:19 -06:00

20 lines
419 B
Ruby

module Vagrant
class Config
# A class which is passed into the various {Base#validate} methods and
# can be used as a helper to add error messages about a single config
# class.
class ErrorRecorder
attr_reader :errors
def initialize
@errors = []
end
# Adds an error to the list of errors.
def add(message)
@errors << message
end
end
end
end