Class: VagrantPlugins::Destroy::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-destroy-provisioner/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#destroyObject

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