Class: VagrantRake::Config

Inherits:
Vagrant::Config::Base
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#directoryObject

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