lib/glare/domain.rb in glare-0.4.0 vs lib/glare/domain.rb in glare-0.6.0

- old
+ new

@@ -5,12 +5,12 @@ class Domain def initialize(client) @client = client end - def register(fqdn, destinations, type) + def register(fqdn, destinations, type, proxied = false) dns_records = Array(destinations).map do |destination| - DnsRecord.new(type: type, name: fqdn, content: destination) + DnsRecord.new(type: type, name: fqdn, content: destination, proxied: proxied) end zone = Zone.new(@client, fqdn) Record.register(@client, zone, dns_records) end