gateway/lib/tasks/dns.rake

11 lines
227 B
Ruby
Raw Normal View History

2022-04-09 15:08:15 +02:00
require "dns_update_job"
namespace :dns do
desc "Update own dyn dns records"
task update: :environment do
job = DnsUpdateJob.new
puts "My ip is #{job.my_ip}"
job.update_ip("gateway" , "hubfeenix.fi")
end
end