Class: VagrantPlugins::AwsAlbTargetGroup::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-aws-alb-target-group/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
# File 'lib/vagrant-aws-alb-target-group/config.rb', line 8

def initialize
  @target_group_name = UNSET_VALUE
end

Instance Attribute Details

#target_group_nameObject

Returns the value of attribute target_group_name.



6
7
8
# File 'lib/vagrant-aws-alb-target-group/config.rb', line 6

def target_group_name
  @target_group_name
end

Instance Method Details

#finalize!Object



12
13
14
# File 'lib/vagrant-aws-alb-target-group/config.rb', line 12

def finalize!
  @target_group_name = nil if @target_group_name == UNSET_VALUE
end

#validate(machine) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/vagrant-aws-alb-target-group/config.rb', line 16

def validate(machine)
  finalize!

  errors = _detected_errors

  { 'AwsAlbTargetGroup' => errors }
end