trabajo-afectivo/app/jobs/app_version_restart_job.rb

9 lines
265 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class AppVersionRestartJob < ApplicationJob
def perform(cmd)
Rails.logger.info "executing CMD: #{cmd}"
::Kernel.system(cmd)
Rails.logger.info "executed CMD: #{cmd}"
end
end