Class: VagrantRake::Config
- Inherits:
-
Vagrant::Config::Base
- Object
- Vagrant::Config::Base
- VagrantRake::Config
- Defined in:
- lib/vagrant-rake/config.rb
Overview
A configuration class to configure defaults which are used for the ‘vagrant-rake` plugin.
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
Instance Method Summary collapse
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory.
6 7 8 |
# File 'lib/vagrant-rake/config.rb', line 6 def directory @directory end |
Instance Method Details
#validate(errors) ⇒ Object
8 9 10 |
# File 'lib/vagrant-rake/config.rb', line 8 def validate(errors) errors.add(I18n.t("vagrant.plugins.rake.config_directory")) if directory && !directory.is_a?(String) end |