Class: VagrantReflect::Configuration::Reflect
- Inherits:
-
Object
- Object
- VagrantReflect::Configuration::Reflect
- Defined in:
- lib/vagrant-reflect/configuration/reflect.rb
Overview
Configuration object for vagrant-reflect
Instance Attribute Summary collapse
-
#show_sync_time ⇒ Object
Returns the value of attribute show_sync_time.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Reflect
constructor
A new instance of Reflect.
- #validate(_) ⇒ Object
Constructor Details
#initialize ⇒ Reflect
Returns a new instance of Reflect.
7 8 9 |
# File 'lib/vagrant-reflect/configuration/reflect.rb', line 7 def initialize @show_sync_time = UNSET_VALUE end |
Instance Attribute Details
#show_sync_time ⇒ Object
Returns the value of attribute show_sync_time.
5 6 7 |
# File 'lib/vagrant-reflect/configuration/reflect.rb', line 5 def show_sync_time @show_sync_time end |
Instance Method Details
#finalize! ⇒ Object
11 12 13 |
# File 'lib/vagrant-reflect/configuration/reflect.rb', line 11 def finalize! @show_sync_time = 0 if @show_sync_time == UNSET_VALUE end |
#validate(_) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/vagrant-reflect/configuration/reflect.rb', line 15 def validate(_) errors = _detected_errors if show_sync_time != true && show_sync_time != false errors << 'show_sync_time must be TRUE or FALSE' end { 'reflect' => errors } end |