Class: VagrantPlugins::Destroy::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::Destroy::Config
- Defined in:
- lib/vagrant-destroy-provisioner/config.rb
Instance Attribute Summary collapse
-
#destroy ⇒ Object
Returns the value of attribute destroy.
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.
6 7 8 |
# File 'lib/vagrant-destroy-provisioner/config.rb', line 6 def initialize @destroy = UNSET_VALUE end |
Instance Attribute Details
#destroy ⇒ Object
Returns the value of attribute destroy.
4 5 6 |
# File 'lib/vagrant-destroy-provisioner/config.rb', line 4 def destroy @destroy end |
Instance Method Details
#finalize! ⇒ Object
10 11 12 |
# File 'lib/vagrant-destroy-provisioner/config.rb', line 10 def finalize! @destroy = true if @destroy == UNSET_VALUE end |
#validate(machine) ⇒ Object
14 15 16 17 |
# File 'lib/vagrant-destroy-provisioner/config.rb', line 14 def validate(machine) errors = _detected_errors { "destroy provisioner" => errors } end |