orbit-basic/app/jobs/restart_server.rb

9 lines
156 B
Ruby

class RestartServer
@queue = :high
def self.perform()
temp_directory = "#{Rails.root}/tmp/"
%x[touch #{temp_directory}restart.txt ]
end
end