Class: Cpspec::Config

Inherits:
Vagrant::Config::Base
  • Object
show all
Defined in:
lib/cpspec/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#directoryObject

Returns the value of attribute directory.



4
5
6
# File 'lib/cpspec/config.rb', line 4

def directory
  @directory
end

Instance Method Details

#validate(errors) ⇒ Object



6
7
8
# File 'lib/cpspec/config.rb', line 6

def validate(errors)
  errors.add("You need a test directory") if !directory
end