add whenever and make rake for dns update
This commit is contained in:
9
lib/tasks/dns.rake
Normal file
9
lib/tasks/dns.rake
Normal file
@ -0,0 +1,9 @@
|
||||
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
|
Reference in New Issue
Block a user