Class: VagrantPlugins::AwsAlbTargetGroup::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::AwsAlbTargetGroup::Config
- Defined in:
- lib/vagrant-aws-alb-target-group/config.rb
Instance Attribute Summary collapse
-
#target_group_name ⇒ Object
Returns the value of attribute target_group_name.
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.
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_name ⇒ Object
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 |