Class: VagrantPlugins::Route53NG::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::Route53NG::Config
- Defined in:
- lib/vagrant-aws-route53-ng/config.rb
Instance Attribute Summary collapse
-
#hosted_zone_id ⇒ Object
Returns the value of attribute hosted_zone_id.
-
#ip_type ⇒ Object
Returns the value of attribute ip_type.
-
#record_set ⇒ Object
Returns the value of attribute record_set.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 |
# File 'lib/vagrant-aws-route53-ng/config.rb', line 10 def initialize @hosted_zone_id = UNSET_VALUE @record_set = UNSET_VALUE @ip_type = UNSET_VALUE end |
Instance Attribute Details
#hosted_zone_id ⇒ Object
Returns the value of attribute hosted_zone_id.
6 7 8 |
# File 'lib/vagrant-aws-route53-ng/config.rb', line 6 def hosted_zone_id @hosted_zone_id end |
#ip_type ⇒ Object
Returns the value of attribute ip_type.
8 9 10 |
# File 'lib/vagrant-aws-route53-ng/config.rb', line 8 def ip_type @ip_type end |
#record_set ⇒ Object
Returns the value of attribute record_set.
7 8 9 |
# File 'lib/vagrant-aws-route53-ng/config.rb', line 7 def record_set @record_set end |
Instance Method Details
#validate(machine) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-aws-route53-ng/config.rb', line 16 def validate(machine) errors = _detected_errors if @hosted_zone_id != UNSET_VALUE && @record_set != UNSET_VALUE errors << "config.route53.ip_type must be :public or :private" \ unless [ :public, :private ].include?(@ip_type) end { 'Route53NG' => errors } end |