2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-12-13 14:40:22 +00:00
|
|
|
class AppVersionRestartJob < ApplicationJob
|
|
|
|
def perform(cmd)
|
|
|
|
Rails.logger.info "executing CMD: #{cmd}"
|
|
|
|
::Kernel.system(cmd)
|
|
|
|
Rails.logger.info "executed CMD: #{cmd}"
|
|
|
|
end
|
|
|
|
end
|