class Route53::Web
Constants
- RECORD_TYPES
Attributes
config[RW]
Public Instance Methods
config()
click to toggle source
# File lib/route53web.rb, line 34 def config self.class.config end
logger()
click to toggle source
# File lib/route53web.rb, line 37 def logger request.logger end
path_prefix()
click to toggle source
# File lib/route53web.rb, line 53 def path_prefix request.env['SCRIPT_NAME'] end
r( zone, record_type )
click to toggle source
# File lib/route53web.rb, line 45 def r( zone, record_type ) record_type = record_type.gsub('|', '/') zone.get_records.select { |r| record_type.split('/').include?(r.type) } end
url_path( *path_parts )
click to toggle source
# File lib/route53web.rb, line 49 def url_path( *path_parts ) [path_prefix, path_parts].join('/').squeeze('/') end
z( name )
click to toggle source
# File lib/route53web.rb, line 40 def z( name ) z = @zones.find { |z| z.name == name } raise "No such zone: #{name}" unless z z end