Module: AwsExtensions::Route53::AliasTarget

Defined in:
lib/aws_extensions/route53/AliasTarget.rb

Instance Method Summary collapse

Instance Method Details

#chomped_dnsObject

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



16
17
18
# File 'lib/aws_extensions/route53/AliasTarget.rb', line 16

def chomped_dns
  dns_name.chomp(".")
end

#elb_dns_nameObject

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



8
9
10
# File 'lib/aws_extensions/route53/AliasTarget.rb', line 8

def elb_dns_name
  dns_name.sub(/^dualstack\./, '').chomp(".")
end