Class: Provider::R53

Inherits:
Object
  • Object
show all
Defined in:
lib/providers/route53/r53.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ R53

Returns a new instance of R53.



8
9
10
11
12
13
14
15
# File 'lib/providers/route53/r53.rb', line 8

def initialize(config)
	@access_key_id = config[:dnsprovider_access_key_id]
	@secret_access_key = config[:dnsprovider_secret_access_key]
	@zone_name = config[:zone_name]
	@zone_url = config[:zone_url]
	@r53 = r53
	@zone = zone
end

Instance Method Details

#r53Object



17
18
19
# File 'lib/providers/route53/r53.rb', line 17

def r53
	Route53::Connection.new(@access_key_id, @secret_access_key)
end

#zoneObject



21
22
23
# File 'lib/providers/route53/r53.rb', line 21

def zone
	Route53::Zone.new(@zone_name, @zone_url, @r53)
end