Sha256: 1399749ffdf43c2ce52ef7d092dfa920bca979afcbd0ce01ce18fe9f61fd0f1b
Contents?: true
Size: 1018 Bytes
Versions: 12
Compression:
Stored size: 1018 Bytes
Contents
# frozen_string_literal: true RSpec::Matchers.define :have_record_set do |name| match do |hosted_zone| hosted_zone.has_record_set?(name, @type, @value, @options) end %w[soa a txt ns cname mx ptr srv spf aaaa caa].each do |type| chain type do |value| @type = type @value = value @options = {} if @options.nil? end end chain :alias do |dns_name, hosted_zone_id| @type = 'a' @options = {} if @options.nil? @options[:alias_dns_name] = dns_name @options[:alias_hosted_zone_id] = hosted_zone_id end chain :aaaa_alias do |dns_name, hosted_zone_id| @type = 'aaaa' @options = {} if @options.nil? @options[:alias_dns_name] = dns_name @options[:alias_hosted_zone_id] = hosted_zone_id end chain :ttl do |ttl| @options = {} if @options.nil? @options[:ttl] = ttl end chain :type do |type| @type = type end chain :failover do |record_type| @options = {} if @options.nil? @options[:record_type] = record_type end end
Version data entries
12 entries across 12 versions & 1 rubygems