Class: Route53Aliaser::Configuration
- Inherits:
-
Object
- Object
- Route53Aliaser::Configuration
- Defined in:
- lib/route53_aliaser/configuration.rb
Instance Attribute Summary collapse
-
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#source_record ⇒ Object
Returns the value of attribute source_record.
-
#target_record ⇒ Object
Returns the value of attribute target_record.
-
#zone_id ⇒ Object
Returns the value of attribute zone_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #source_key ⇒ Object
- #target_key ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 |
# File 'lib/route53_aliaser/configuration.rb', line 6 def initialize @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) @cache = defined?(Rails) ? Rails.cache : ActiveSupport::Cache::MemoryStore.new end |
Instance Attribute Details
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def aws_access_key_id @aws_access_key_id end |
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def aws_secret_access_key @aws_secret_access_key end |
#cache ⇒ Object
Returns the value of attribute cache.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def cache @cache end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def logger @logger end |
#source_record ⇒ Object
Returns the value of attribute source_record.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def source_record @source_record end |
#target_record ⇒ Object
Returns the value of attribute target_record.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def target_record @target_record end |
#zone_id ⇒ Object
Returns the value of attribute zone_id.
3 4 5 |
# File 'lib/route53_aliaser/configuration.rb', line 3 def zone_id @zone_id end |
Instance Method Details
#source_key ⇒ Object
15 16 17 |
# File 'lib/route53_aliaser/configuration.rb', line 15 def source_key "rt53_#{source_record}_ips" end |
#target_key ⇒ Object
11 12 13 |
# File 'lib/route53_aliaser/configuration.rb', line 11 def target_key "rt53_#{target_record}_ips" end |