lib/do_dyndns/updater.rb
# Calls update on all configured domain's subdomains
Calls update on all configured domain's subdomains
Calls update on all configured domain ' s subdomains
def update_ips
      @logger.info "Started IP check"
      @logger.info "Current WAN IP: #{wan_ipv4}"
      domains.each do |domain|
        sub_domains_for(domain).each do |record|
          if ip_changed?(record)
            @logger.info "IPs Differ for #{record.name}.#{domain.name}"
            update(domain, record)
          else
            @logger.info "IPs Match for #{record.name}.#{domain.name}"
          end
        end
      end
    end
def update_ips @logger . info "Started IP check" @logger . info "Current WAN IP: #{wan_ipv4}" domains . each do | domain | sub_domains_for ( domain ) . each do | record | if ip_changed? ( record ) @logger . info "IPs Differ for #{record.name}.#{domain.name}" update ( domain , record ) else @logger . info "IPs Match for #{record.name}.#{domain.name}" end end end end
Calls update on all configured domain's subdomains
Calls update on all configured domain ' s subdomains