Class: VagrantSyllabusProvisioner::Config
- Inherits:
-
Object
- Object
- VagrantSyllabusProvisioner::Config
- Defined in:
- lib/vagrant_syllabus_provisioner/config.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/vagrant_syllabus_provisioner/config.rb', line 7 def initialize @files = UNSET_VALUE end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
5 6 7 |
# File 'lib/vagrant_syllabus_provisioner/config.rb', line 5 def files @files end |
Instance Method Details
#finalize! ⇒ Object
11 12 13 |
# File 'lib/vagrant_syllabus_provisioner/config.rb', line 11 def finalize! @files = nil if @files == UNSET_VALUE end |
#validate(machine) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/vagrant_syllabus_provisioner/config.rb', line 15 def validate(machine) if @files && !@files.is_a?(Array) return {"syllabus" => ["files must be an array"]} end {} end |