Method: Shards::Dns#initialize
- Defined in:
- lib/shards/dns.rb
#initialize(stage:, domain: nil) ⇒ Dns
Returns a new instance of Dns.
16 17 18 19 20 21 22 23 24 |
# File 'lib/shards/dns.rb', line 16 def initialize stage:, domain: nil set_config @stage=stage @domain=domain.downcase if domain reset_output @r53 = Aws::Route53::Client.new( region: default_region ) @ttl=300 @type='CNAME' end |