hubfeenix.fi/lib/tasks/dns.rake
2023-02-11 22:35:45 +02:00

11 lines
227 B
Ruby

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