Class: Route53
- Inherits:
-
Switcher
- Object
- Switcher
- Route53
- Defined in:
- lib/route53_auto.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#r53 ⇒ Object
Returns the value of attribute r53.
Instance Method Summary collapse
-
#initialize(id, domain_name) ⇒ Route53
constructor
A new instance of Route53.
- #r53_client_connect ⇒ Object
- #reload ⇒ Object
Constructor Details
#initialize(id, domain_name) ⇒ Route53
Returns a new instance of Route53.
9 10 11 12 13 14 15 16 |
# File 'lib/route53_auto.rb', line 9 def initialize(id, domain_name) super(id) puts "\nswitcher initialized" if @switcher @client = r53_client_connect puts 'Client auth successfull' if @client @r53 = auto_change(domain_name) puts 'r53 client auth successfull' if @r53 end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/route53_auto.rb', line 6 def client @client end |
#r53 ⇒ Object
Returns the value of attribute r53.
7 8 9 |
# File 'lib/route53_auto.rb', line 7 def r53 @r53 end |
Instance Method Details
#r53_client_connect ⇒ Object
18 19 20 |
# File 'lib/route53_auto.rb', line 18 def r53_client_connect Aws::Route53::Client.new(region: @region, credentials: @credentials) end |
#reload ⇒ Object
22 23 24 |
# File 'lib/route53_auto.rb', line 22 def reload @client = self.r53_client_connect end |