class Chef::Resource::AwsRoute53HostedZone
Constants
- DEFAULTABLE_ATTRS
Public Instance Methods
aws_object()
click to toggle source
# File lib/chef/resource/aws_route53_hosted_zone.rb, line 59 def aws_object driver, id = get_driver_and_id begin result = driver.route53_client.get_hosted_zone(id: id).hosted_zone if id rescue StandardError nil end if result result.resource_record_sets = get_record_sets_from_aws(result.id).resource_record_sets result end end
get_record_sets_from_aws(hosted_zone_id, opts = {})
click to toggle source
since this is used exactly once, it could plausibly be inlined in aws_object
.
# File lib/chef/resource/aws_route53_hosted_zone.rb, line 73 def get_record_sets_from_aws(hosted_zone_id, opts = {}) params = { hosted_zone_id: hosted_zone_id }.merge(opts) driver.route53_client.list_resource_record_sets(params) end
record_sets(&block)
click to toggle source
# File lib/chef/resource/aws_route53_hosted_zone.rb, line 51 def record_sets(&block) if block_given? @record_sets_block = block else @record_sets_block end end