trabajo-afectivo/app/jobs/app_version_restart_job.rb

8 lines
189 B
Ruby
Raw Normal View History

class AppVersionRestartJob < ApplicationJob
def perform(cmd)
Rails.logger.info "executing CMD: #{cmd}"
::Kernel.system(cmd)
Rails.logger.info "executed CMD: #{cmd}"
end
end