orbit-basic/app/jobs/restart_server.rb

9 lines
172 B
Ruby

class RestartServer
@queue = :high
def self.perform()
CronMail.time_check("Going to restarting Orbit").deliver
%x[touch #{Rails.root}/tmp/restart]
end
end