module AwsExtensions::Route53::AliasTarget

Public Instance Methods

chomped_dns() click to toggle source

Public: Method that will reformat the dns_name to remove the trailing “.” from the dns_name if it is present.

Returns the string reformatted dns_name

# File lib/aws_extensions/route53/AliasTarget.rb, line 16
def chomped_dns
  dns_name.chomp(".")
end
elb_dns_name() click to toggle source

Public: Method that will reformat the dns_name of an ELB from Route53 alias to be the same as the dns_name on a regular ELB.

Returns the string reformatted dns_name

# File lib/aws_extensions/route53/AliasTarget.rb, line 8
def elb_dns_name
  dns_name.sub(/^dualstack\./, '').chomp(".")
end