trabajo-afectivo/app/jobs/app_version_restart_job.rb

10 lines
265 B
Ruby
Raw Normal View History

# 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