app_version_restart_job.rb 266 B

123456789
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class AppVersionRestartJob < ApplicationJob
  3. def perform(cmd)
  4. Rails.logger.info "executing CMD: #{cmd}"
  5. ::Kernel.system(cmd)
  6. Rails.logger.info "executed CMD: #{cmd}"
  7. end
  8. end